Dunfey · Hotel WWDC as data, est. 1983
Front desk everything
Years
Topics

2023 Developer ToolsEssentialsSpatial ComputingSwiftUI & UI Frameworks

WWDC23 · 14 min · Developer Tools / Essentials / Spatial Computing / SwiftUI & UI Frameworks

Run your iPad and iPhone apps in the Shared Space

Discover how you can run your existing iPad and iPhone apps on Vision Pro. Learn how iPadOS and iOS apps operate on this platform, find out about the Designed for iPad experience, and explore the paths available for enhancing your app experience on visionOS.

Watch at developer.apple.com ↗

Transcript all transcripts

Chapters

Code shown on screen · 4 snippets

Default orientation Info.plist key swift · at 4:37 ↗
UIPreferredDefaultInterfaceOrientation
Supported orientations Info.plist key swift · at 5:03 ↗
UISupportedInterfaceOrientations
Required capabilities Info.plist key swift · at 5:13 ↗
UIRequiredDeviceCapabilities
Look to Dictate enablement swift · at 7:59 ↗
// SwiftUI
@State private var searchText = ""

var body: some View {
    NavigationStack {
        Text("Query: \(searchText)")
    }
    .searchable(text: $searchText)
    .searchDictationBehavior(.inline(activation: .onLook))
}


// UIKit
let searchController = UISearchController()
searchController.searchBar.isLookToDictateEnabled = true