SwiftTUI icon indicating copy to clipboard operation
SwiftTUI copied to clipboard

Add support for Swift Observation

Open DandyLyons opened this issue 4 months ago • 0 comments

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.

DandyLyons avatar Oct 23 '24 16:10 DandyLyons