Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

How to build visionOS apps using Windows

Avatar for Akio Itaya Akio Itaya
September 05, 2024

How to build visionOS apps using Windows

Avatar for Akio Itaya

Akio Itaya

September 05, 2024
Tweet

More Decks by Akio Itaya

Other Decks in Programming

Transcript

  1. AKKEY / AKIO ITAYA ૑଄తͳ visionOS ΞϓϦ։ൃज़ The Bash -

    iOSDC Japan 2024 / STORES גࣜձࣾ Windows Base
  2. import SwiftUI @main struct PersonaAnywhere: App { var body: some

    Scene { WindowGroup { ContentView() } } }
  3. import SwiftUI @main struct PersonaAnywhere: App { var body: some

    Scene { WindowGroup { ContentView() } .windowResizability(.contentSize) } } https://developer.apple.com/documentation/swiftui/scene/windowresizability(_:)
  4. import SwiftUI @main struct PersonaAnywhere: App { var body: some

    Scene { WindowGroup { ContentView() } .windowResizability(.contentSize) } } struct ContentView: View { var body: some View { VStack { Spacer() Text(sessionState.title) .font(.title) … } } }
  5. import SwiftUI @main struct PersonaAnywhere: App { var body: some

    Scene { WindowGroup { ContentView() .fixedSize() } .windowResizability(.contentSize) } } https://developer.apple.com/documentation/swiftui/view/fixedsize()