Posts

Post marked as solved
1 Replies
Haven't watched the session yet but if it's a value type, @State is correct and it wont get regenerated on each init or each body call. If it's an ObservableObject, then you'd be correct in choosing @StateObject (or @ObservedObject if someone outside of the SwiftUI view hierarchy owns the object.)
Post not yet marked as solved
2 Replies
I'm running into the exact same issue. It appears Apple may have a version with a Label because the interface declares one but then only publicly restricts it to Text.