Post

Replies

Boosts

Views

Activity

Comment on To pass Bool value in an enum variable of type someView
i'm not Quinn, but I'd say what I think. The expression is a closure passed in the set: parameter of the initialiser. You need to pass a closure that takes a newValue parameter (of the T type as in Binding, which here is Bool) as input, and set it to whatever other variable you use. You use another variable to store the binding's actual value, and this value is of type MyBool.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’23
Comment on To pass Bool value in an enum variable of type someView
i'm not Quinn, but I'd say what I think. The expression is a closure passed in the set: parameter of the initialiser. You need to pass a closure that takes a newValue parameter (of the T type as in Binding, which here is Bool) as input, and set it to whatever other variable you use. You use another variable to store the binding's actual value, and this value is of type MyBool.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on On which target will Swift Student Challenge submissions run on, when choosing Xcode 14 on macOS 13?
Thanks! I reviewed the options, and I was wondering which run destination (not target, sorry) will be used when choosing the Xcode option. I was worried about an issue I had with a SwiftUI NavigationSplitView in Mac Catalyst (FB12108868), but I found a workaround and I don't think I'll have any specific instructions.
Replies
Boosts
Views
Activity
Apr ’23
Comment on Submission Format
Make sure to check if your app builds and runs on Swift Playgrounds.
Replies
Boosts
Views
Activity
Apr ’23
Comment on How to take off background from NavigationLink items.
NavigationView is deprecated. You can use NavigationStack and NavigationSplitView instead. Here you can find more details.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23