WWDC24
View sample code referenced in the WWDC24 session videos.
View sample code referenced in the WWDC24 session videos.
Leverage SwiftUI to build an immersive media experience in a multiplatform app.
iOS, iPadOS, macOS, tvOS, visionOS
View codeBuild a multiplatform app that uses windows, volumes, and animations to create a robot botanist's greenhouse.
iOS, iPadOS, macOS, visionOS
View codeSupport advancements in SwiftUI accessibility to make your app accessible to everyone.
iOS macOS
View codeAdd assistant schemas to your app so Siri can complete requests, and integrate your app with Apple Intelligence, Spotlight, and other system experiences.
iOS macOS
View codeUse a Core Audio tap to capture outgoing audio from a process or group of processes.
macOS
View codeConvert 8-channel audio to 2-channel spatial audio by using a spatial mixer audio unit.
iOS macOS
View codeCreate video content for visionOS by converting an existing 3D HEVC file to a multiview HEVC format, optionally adding spatial metadata to create a spatial video.
macOS
View codeGo beyond simple ad insertion with point and fill occupancy HLS interstitials.
iOS
View codeImplement a configurable virtual MIDI driver as a driver extension that runs in user space in macOS and iPadOS.
iOS macOS DriverKit
View codeDiscover and set up a specific Bluetooth accessory without requesting permission to use Bluetooth.
iOS
View codeAllow people to grant your app access to contact data by adding the Contact access button and Contact access picker to your app.
iOS
View codeAdd a simple model to an app, pass input data to the model, and process the model’s predictions.
iOS
View codeArrange spatial Personas in a team-based guessing game.
visionOS
View codeDefine boundaries and act on user location updates.
iOS
View codeSimplify location delivery using asynchronous events in Swift.
iOS
View codeProvide automatic search completions for a partial search query, search the map for relevant locations nearby, and retrieve details for selected points of interest.
iOS
View codeImplement a post-processing pipeline using the latest features on Apple GPUs.
iOS macOS tvOS
View codeImplement realistic real-time lighting by dynamically generating reflection maps by encoding a ray-tracing compute pass.
iOS macOS
View codeIncorporate a custom PencilKit tool picker with a variety of system and custom tools into a drawing app.
iOS visionOS
View codeAdd the power of a photography studio and lighting rig to your app with the new Constant Color API.
iOS
View codeCreate spatial photos for visionOS by packaging a pair of left- and right-eye images as a stereo HEIC file with related spatial metadata.
macOS
View codeCapture photos and record video using the front and rear iPhone and iPad cameras.
iOS
View codeDisplay a scene from Reality Composer Pro in visionOS.
visionOS
View codeBuild an immersive game using RealityKit audio, simulation, and rendering features.
iOS visionOS
View codeUse low-level mesh and texture APIs to achieve fast updates to a person's brush strokes by integrating RealityKit with ARKit and SwiftUI.
visionOS
View codeReconstruct objects from user-selected input images by using photogrammetry.
macOS
View codeBuild efficient custom worlds for your app.
visionOS
View codeBuild a RealityKit component to support standard visionOS gestures on any entity.
visionOS
View codeAdd a range of visual effects to a RealityKit view by attaching a particle emitter component to an entity.
visionOS
View codeCreate entities that behave and react like physical objects in a RealityKit view.
visionOS
View codeBring an iOS or iPadOS game to visionOS and enhance it.
visionOS
View codeBuild an interactive scene using an animation timeline.
visionOS
View codeUse attachments to place 2D content relative to 3D content in an immersive space.
visionOS
View codeUse this code to follow along with a guide to migrating your code to take advantage of the full concurrency protection that the Swift 6 language mode provides.
iOS watchOS
View codeVisualize an entire data collection efficiently by instantiating a single vectorized plot in Swift Charts.
iOS macOS visionOS
View codePersist data in your app intuitively with the Swift native persistence framework.
iOS macOS tvOS
View codeBuild standard content lockups and rows of content shelves for your tvOS app.
tvOS
View codeAdd scroll effects, rich color treatments, custom transitions, and advanced effects using shaders and a text renderer.
iOS
View codeConfigure how your app’s windows look and function in macOS to provide an engaging and more coherent experience.
macOS
View codeCreate, save, and open documents in a multiplatform app.
iOS macOS
View codeKeep your app content front and center while providing quick access to navigation using the tab bar.
iOS macOS tvOS visionOS
View codeDevelop a spatial board game where multiple players interact with pieces on a table.
visionOS
View codeDisplay simple system translations and create custom translation experiences.
iOS macOS
View codeUse windows, volumes, and immersive spaces to teach people about the Earth.
visionOS
View codeWalk through the process of setting up assignments and recording student progress.
visionOS
View codePresent a mixed immersion style space to draw content in a person’s surroundings, and choose how upper limbs appear with respect to rendered content.
visionOS
View codeCreate a more immersive experience by adding video reflections in a custom environment.
visionOS
View codeSupport adding an issued card to Apple Pay from directly within Apple Wallet using Wallet Extensions.
iOS
View code