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

Need non-toy examples using Swift immutable structs #68

Open
funcJeff opened this issue Sep 2, 2022 · 0 comments
Open

Need non-toy examples using Swift immutable structs #68

funcJeff opened this issue Sep 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@funcJeff
Copy link

funcJeff commented Sep 2, 2022

Describe the solution you'd like
Full examples of how to achieve tasks using Swift immutable structs. It is very difficult to achieve even the simplest tasks. Example: https://stackoverflow.com/questions/73556044/how-to-get-objectbox-backlinks-to-save-with-swift-structs

Or, if I am doing something wrong, then not enough runtime or compile time errors are thrown.

Describe alternatives you've considered
The NotesExample.xcworkspace contains only class examples.

The docs say that:

beyond having to use a special call the first time you write out an entity, everything is the same as with classes.

This is not true. I have code that works for a class type but fails for immutable struct types.

Additional context
I love the stark simplicity of the architecture of ObjectBox, but without working examples to follow with Swift immutable structs, the documentation is suddenly too opaque. I am either seeing behavior that makes no sense or getting errors that I cannot understand why.

@funcJeff funcJeff added the enhancement New feature or request label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant