Skip to content

Add support for Swift Observation #42

@DandyLyons

Description

@DandyLyons

It looks like SwiftTUI is only able to support view models on macOS, since @ObservedObject is only available on macOS.

If we supported language level Swift Observation, then SwiftTUI should be able to support view models on any platform.

It looks like it should be feasible to implement using a strategy similar to that found in View+Observable.swift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions