Post

Replies

Boosts

Views

Activity

Reply to VisionOS Set Default Window Size
The following worked for me: struct MyApp: App { var body: some SwiftUI.Scene { WindowGroup { ContentView() } .defaultSize(CGSize(width: 1000, height: 250)) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Type 'MyApp' does not conform to protocol 'App'
I was able to get it to work by tweaking the code to the following (thank you 'lorem ipsum' over at Stack Overflow!) Here's the corrected code: struct GlimpseVision: App { var body: some SwiftUI.Scene { WindowGroup { ContentView() } .defaultSize(CGSize(width: 1000, height: 250)) } }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’24