How to build visionOS apps using Windows

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Akio Itaya
September 05, 2024

How to build visionOS apps using Windows

Akio Itaya

September 05, 2024

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

19 slides
  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()

More Decks by Akio Itaya

Other Decks in Programming