Skip to content

Need non-toy examples using Swift immutable structs #68

@funcJeff

Description

@funcJeff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions