What's new in AppKit

RSS for tag

Discuss the WWDC22 Session What's new in AppKit

Posts under wwdc2022-10074 tag

2 Posts

Post

Replies

Boosts

Views

Activity

SwiftUI FormStyle has no insetGrouped member
I'm trying to use the new .formStyle(.insetGrouped), as mentioned in the WWDC 2022 presentation "What's new in AppKit". However, I don't see it in the documentation for FormStyle, and the following code below fails to compile because it's not a member: import AppKit import SwiftUI import PlaygroundSupport struct ContentView: View { @State var text = "" @State var toggle = false var body: some View { Form { TextField("Text", text: $text) Toggle("Toggle", isOn: $toggle) } .formStyle(.insetGrouped) } } PlaygroundPage.current.setLiveView(ContentView()) Am I missing something here (i.e. declaring some SDK version)?
1
0
981
Apr ’23
SwiftUI FormStyle has no insetGrouped member
I'm trying to use the new .formStyle(.insetGrouped), as mentioned in the WWDC 2022 presentation "What's new in AppKit". However, I don't see it in the documentation for FormStyle, and the following code below fails to compile because it's not a member: import AppKit import SwiftUI import PlaygroundSupport struct ContentView: View { @State var text = "" @State var toggle = false var body: some View { Form { TextField("Text", text: $text) Toggle("Toggle", isOn: $toggle) } .formStyle(.insetGrouped) } } PlaygroundPage.current.setLiveView(ContentView()) Am I missing something here (i.e. declaring some SDK version)?
Replies
1
Boosts
0
Views
981
Activity
Apr ’23
How do I check whether Stage Manager is enabled?
How do I check if Stage Manager is enabled in my code? And I want to turn the Stage Manager on or off with code.
Replies
1
Boosts
1
Views
1.9k
Activity
Aug ’22