Demonstrates SwiftUI Navigation behavior change from iOS 14 to iOS 15 which disallows single-source-of-truth state management.
Using .navigationViewStyle(.stack)
helps avoiding this bug.
https://twitter.com/chriseidhof/status/1441330150872735745
NOTE: Array of isActive
s was already broken in iOS 14, but UI transition was working correctly.
ios14.mov
Both aray of isActive
s and UI transition are broken.
(This occurs only when single @Published
(a.k.a. single-source-of-truth) is used,
and will be no problem if multi-@Published
or multi-@State
are used)