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 ↗Chapters
Code shown on screen · 4 snippets
Default orientation Info.plist key
UIPreferredDefaultInterfaceOrientation Supported orientations Info.plist key
UISupportedInterfaceOrientations Required capabilities Info.plist key
UIRequiredDeviceCapabilities Look to Dictate enablement
// SwiftUI
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 Related sessions
-
12 min -
28 min -
12 min -
26 min -
16 min -
11 min -
26 min