Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties don't save to realm #52

Open
Ludicrous2k opened this issue Jan 13, 2021 · 0 comments
Open

Properties don't save to realm #52

Ludicrous2k opened this issue Jan 13, 2021 · 0 comments

Comments

@Ludicrous2k
Copy link

Hi just found this and it's so nice to have the ability to use swift types instead of realm types! Keep up the good job!

I have a question about some types of properties that i'm not sure if they are supported or not but i saw one of them in your User object example so i thought maybe they would be. When I init the struct and print it out, I can see all those values. After i save them into realm and retrieve them the optional dictionary and array of enum shows up nil but the array of enum and dictionary that was inited to an empty value displays the correct value.

Optional Array of Enum
Optional Dictionary of String: String
Optional Enum = Crashes on build

Are those types above supported an i'm doing something wrong or are they not supported?

This is the testing struct I'm testing with:
Screen Shot 2021-01-13 at 11 23 28 AM

The Init:
Screen Shot 2021-01-13 at 11 23 37 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant