You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macOS 14:
C1T1's UI will only be updated at most 1 time if we only tap T1. C2T1 will always reflect the latest value in UI. A tap for T2 will make C1T1's UI up to data.
Tap on C1T2 or C2T2 will update both toggle at the same time. (Expected)
iOS 17
Tap on C2T1 will only update toggle C2T1 while the UI of C1T1 remains the same.
Tap on C1T1 will update both toggle(C1T1 & C2T1) at the same time. (Expected)
Tap on C1T2 or C2T2 will update both toggle at the same time. (Expected)
See full ContentView code in the attachment.
See screen recording and full context here sindresorhus/Settings#117
Description
I suspect the bug was introduced due the Observation support change in SwiftUI. And the bug’s behavior is different on iOS and macOS
(4 toggles: C1T1 C1T2 C2T1 C2T2 - C1T1&C2T1 use the same truth, C1T2&C2T2 use the same truth )
macOS 14:
C1T1's UI will only be updated at most 1 time if we only tap T1. C2T1 will always reflect the latest value in UI. A tap for T2 will make C1T1's UI up to data.
Tap on C1T2 or C2T2 will update both toggle at the same time. (Expected)
iOS 17
Tap on C2T1 will only update toggle C2T1 while the UI of C1T1 remains the same.
Tap on C1T1 will update both toggle(C1T1 & C2T1) at the same time. (Expected)
Tap on C1T2 or C2T2 will update both toggle at the same time. (Expected)
See full ContentView code in the attachment.
See screen recording and full context here sindresorhus/Settings#117
Files
ContentView.swift.zip
The text was updated successfully, but these errors were encountered: