I have faced the same issue, how Can I resolve it with the new @Persisted property declaration syntax?

Continuing the discussion from RealmField and RealmClass for Swift:

Gi @Tai_Kim this is not possible at the moment with current modern declaration syntax @Persisted, but we are working on a new API which solves this.

1 Like

Thank you, so the only solution right now is that I have to change the property name right?

For now if you want to use @Persisted you have to rename the property.

1 Like

Thank you for the clarification!