Skip to content

Support for SwiftUI Observation #8798

@IsaiahJTurner

Description

@IsaiahJTurner

Problem

Is there any plans to support SwiftUI Observation? This would greatly simplify working with Realm in SwiftUI to eliminate the need for notification tokens and complex ObservedResults solutions. @Observable has been available since iOS 17 so many apps will soon be able to target that as a minimum version.

At the moment, we are considering switching to SwiftData just because of how much SwiftUI Observation simplifies things.

Apologies if this has already been raised, I searched the issues history and could not find it.

Solution

No response

Alternatives

No response

How important is this improvement for you?

Dealbreaker

Feature would mainly be used with

Local Database only

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions