mirror of
https://github.com/rensbreur/SwiftTUI.git
synced 2026-04-03 00:18:31 -06:00
Add support for Swift Observation #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DandyLyons on 10/23/2024
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.