allowWritesOnUiThread configuration setting in Realm Swift?

In Realm Java you can set allowWritesOnUiThread(false) to prevent being able to write to the realm on the UIThread. Is there something similar for iOS?

Historically I have been writing on the UIThread, but I want to avoid that now that I am moving toward sync. Is there a setting to assert this? Ideally I’d want the app to crash in debug builds if I write from the ui thread

I guess there isn’t a way to do this?

I guess you can write your own extensions to do this, but it’s not what we’d recommend. There is no builtin way to do this and sync should not block the UI thread.

Thanks! It would just be nice to have something similar to the java SDK so I could detect invalid uses easier in development/debug. But I will have to do without it then.