Try out your website in the spatial web
Websites generally need no special changes to work in Safari on visionOS, which runs the same WebKit engine. To test and debug them, install the visionOS simulator via Xcode 15 or Xcode 16 beta and attach Safari's Web Inspector on macOS to it, or pair a physical Apple Vision Pro with the Mac using a one-time PIN and inspect pages remotely. Feature flags in visionOS 1.2 let developers preview WebXR and the <model> element ahead of visionOS 2.
Related posts
- Enabling the Inspection of Web Content in Apps
WebKit mediumAdeptWKWebView and JSContext now expose an opt-in `isInspectable` property (default false), letting released apps, not just Xcode development builds, have their web content and JavaScript contexts debugged with Safari's Web Inspector. Swift, Objective-C and C (`JSGlobalContextSetInspectable`) examples are given. Inspection can be toggled at runtime, and disabling it closes an active inspector. Unnamed JSContexts all appear as "JSContext" in the Develop menu, so each should get a `name`. Apps linked against the macOS 13.3/iOS 16.4 SDKs lose the old always-inspectable debug behavior and should guard the API with availability checks.
- News from WWDC23: WebKit Features in Safari 17 beta
WebKit mediumAdeptSafari 17 beta brings 88 web features. Mac users can add any website to the Dock as a web app: cookies are copied over and web push and badging are supported. The release also adds experimental <model> and WebXR (immersive-vr with hand tracking) for Vision Pro, JPEG XL and HEIC image support, image-set() type arguments, and the power-efficient Managed Media Source API for adaptive streaming. HTML gains the popover attribute and <hr> in <select>, CSS gains @counter-style and expanded font-size-adjust, and each feature comes with code examples showing usage and fallbacks.
- News from WWDC24: WebKit in Safari 18 beta
WebKit mediumAdeptSafari 18 beta ships 48 new web platform features, 18 deprecations and 174 bug fixes across iOS 18, iPadOS 18, visionOS 2 and macOS Sequoia betas. Headline additions include immersive WebXR on visionOS with transient-pointer input and hand tracking, the View Transitions API, CSS Style Queries for custom properties, and currentcolor and system color keywords in Relative Color Syntax. Further additions are display-property transitions, the safe alignment keyword in Flexbox, content-visibility, and unprefixed backdrop-filter. Mac web apps can now open matching links based on their manifest scope and support extensions, and the Fullscreen API on visionOS can present spatial photos and panoramas immersively.
- News from WWDC25: WebKit in Safari 26 beta
WebKit mediumAdeptSafari 26 beta ships 67 new features and 107 improvements, with the version number jumping from 18.x to 26 to match Apple's OS renumbering. Highlights include SVG and data-URL favicons, every Home Screen site opening as a web app by default on iOS/iPadOS, HDR images with the CSS dynamic-range-limit property, and a new SwiftUI-native WebKit API built around WebView and WebPage. visionOS gains the <model> element for interactive USDZ 3D content and immersive video via APMP and HLS. WebGPU with WGSL now ships across platforms, along with CSS anchor positioning and many other web platform additions.
- Introducing Natural Input for WebXR in Apple Vision Pro
WebKit mediumAdeptSafari 17.4 on visionOS 1.1 adds a `transient-pointer` WebXR input mode, behind a flag, that maps Apple Vision Pro's gaze-and-pinch natural input onto XRInputSources. Each input exists only for the duration of a pinch and fires inputsourceschange, selectstart, select and selectend on the session. Its targetRaySpace starts from the user's gaze and then follows the hand, and its gripSpace tracks the pinch location. When hand tracking is granted, the persistent tracked-pointer hands occupy indices 0 and 1, so frameworks like Three.js that only check those indices miss selections. Objects should be attached to gripSpace rather than targetRaySpace, and the post covers testing in the visionOS Simulator.