WWDC21
View sample code referenced in the WWDC21 session videos.
View sample code referenced in the WWDC21 session videos.
Learn how to make your watchOS app more accessible.
iOS watchOS
View codeMake your app accessible to everyone by applying accessibility modifiers to your SwiftUI views.
iOS macOS
View codeDesign for large text sizes by modifying the user interface.
iOS
View codeSimulate a conversation using speech synthesis.
iOS
View codeNavigate to the end of a dark maze using VoiceOver as your guide.
iOS
View codeChange the frequency response of an audio signal using a cascaded biquadratic filter.
macOS
View codeDisplay lesson content that’s synchronized to a learning video by matching the audio to a custom reference signature and associated metadata.
iOS
View codeCreate a configurable audio input source as a driver extension that runs in user space.
macOS DriverKit
View codeBuild a virtual audio device by creating a custom driver plug-in.
macOS
View codePlay media fullscreen, embedded inline, or in a floating picture-in-picture window using a player view controller.
iOS Mac Catalyst
View codeCreate synchronized media experiences that enable users to watch and listen across devices.
iOS
View codeAdd interactive overlays, parental controls, and livestream channel flipping using a player view controller.
tvOS
View codeAdd Intents extensions to your app to handle requests to book rides using Siri and Maps.
iOS
View codeCreate app extensions that block content, perform message and composing actions, and help message security.
macOS
View codeEnhance your app’s experience by incorporating haptic and sound feedback into key interactive moments.
iOS
View codeOffer in-app purchases and manage entitlements using signed transactions and status information.
iOS
View codeLearn how to interact with a nearby device by measuring the distance between a watch and a paired iPhone.
iOS watchOS
View codeEstablish a connection with a nearby accessory to begin periodically receiving its distance from the user’s device.
iOS
View codeConsume data in the background, and lower memory use by batching imports and preventing duplicate records.
iOS macOS
View codeCollect payments with iPhone and Apple Watch using Apple Pay.
iOS watchOS
View codeResolve, confirm, and handle intents without an extension.
iOS Mac Catalyst
View codeMake it easy for people to use Siri with your app by providing shortcuts to your app’s actions.
iOS Mac Catalyst watchOS
View codeFind an album in Apple Music that corresponds to a CD in a user’s collection, and present the information associated with the album.
iOS
View codeUse systems and postprocessing effects to create a realistic underwater scene.
iOS
View codeGenerate 3D objects from images using RealityKit Object Capture.
macOS
View codeCapture high-quality images with depth and gravity data to use with RealityKit Object Capture.
iOS
View codeTrack specific geographic areas of interest and render them in an AR experience.
iOS
View codeCreate an AR experience that randomly selects a programming framework and maps it onto the user’s face.
iOS
View codeUse the Indoor Mapping Data Format (IMDF) to show an indoor map with custom overlays and points of interest.
iOS
View codeBuild DocC documentation for a Swift package that contains a DocC Catalog.
View code
Encourage competition in your games by adding leaderboards that have a duration and repeat.
iOS
View codeExplicitly enumerate a ray’s intersections with acceleration structures by creating an intersection query object.
iOS macOS
View codeCreate AR games and experiences that interact with real-world objects on LiDAR-equipped iOS devices.
iOS
View codeImplement a post-processing pipeline using the latest features on Apple GPUs.
iOS macOS tvOS
View codeShare screen recordings, or broadcast live audio and video of your app, by adding ReplayKit to your macOS apps and games.
macOS
View codeRender realistic real-time lighting by dynamically generating reflection maps using a ray-tracing compute pass.
macOS
View codeAdd a virtual controller to your game that is an onscreen software emulation of a physical controller.
iOS macOS tvOS
View codeGenerate image masks for people automatically by using semantic person-segmentation.
iOS
View codeDetect and identify hundreds of sounds by using a trained classifier.
iOS Mac Catalyst
View codeConfigure and perform text recognition on images to identify their textual content.
macOS
View codeCapture photos with depth data and record video using the front and rear iPhone and iPad cameras.
iOS
View codeIdentify machine readable codes or faces by using the camera.
iOS
View codeImprove the user experience of finding and selecting assets by using the Photos picker.
iOS
View codeBlock web content with your web extension using the declarative net request API.
iOS macOS
View codeImprove your web extension in Safari with a non-persistent background page and new tab-override customization.
iOS macOS
View codeImprove your app’s performance by refactoring your code to take advantage of asynchronous functions in Swift.
iOS watchOS
View codeMake your apps stand out by adding background materials, vibrancy, custom graphics, and animations.
iOS macOS
View codeDynamically respond to keyboard movement by using the tracking features of the keyboard layout guide.
iOS
View codeDemonstrates how to enable and implement drag and drop for a table view.
iOS
View codeImprove the performance of lists and collections in your app with prefetching and image preparation.
iOS
View codeCreate engaging SwiftUI Mac apps by incorporating side bars, tables, toolbars, and several other popular user interface elements.
macOS
View codeImprove your iPadOS app with Mac Catalyst by supporting native controls, multiple windows, sharing, printing, menus and keyboard shortcuts.
iOS Mac Catalyst
View codeCreate a shared codebase to build a multiplatform app that offers widgets and an App Clip.
iOS macOS
View codeNavigate between user interface elements using a keyboard and focusable UI elements in iPad apps and apps built with Mac Catalyst.
iOS Mac Catalyst
View codeGroup individual views in your app’s user interface into a scrollable stack view.
macOS
View codeProvide continuity for the user by preserving current activities.
iOS
View codeCreate a search interface with a table view of suggested searches.
iOS
View codeInteract with text by managing text selection and inserting custom text elements.
macOS
View codeCreate an Ethernet driver that interfaces with the system’s network protocol stack.
macOS DriverKit
View codeConvert data into readable strings or Swift objects using formatters.
iOS macOS
View codeEncrypt a single file and save the result to the file system, then decrypt and recreate the original file from the archive file using Apple Encrypted Archive.
macOS
View codeEncrypt the contents of a string and save the result to the file system, then decrypt and recreate the string from the archive file using Apple Encrypted Archive.
macOS
View codeCompress and encrypt the contents of an entire directory or decompress and decrypt an archived directory using Apple Encrypted Archive.
macOS
View codeEnable devices to access relative positioning information.
iOS
View codeKeep your complications up-to-date by reading values from a Bluetooth peripheral while your app is running in the background.
iOS watchOS
View codeProvide voice and text communication on a local network isolated from Apple Push Notification service by adopting Local Push Connectivity.
iOS macOS
View codeCreate and share private CloudKit data with other users by implementing the sharing UI.
iOS Mac Catalyst
View codeAsk for location access using a customizable location button.
iOS
View codeIndex app data so users can find it by using Spotlight search.
iOS Mac Catalyst
View codeShare data between a user’s devices and other iCloud users.
iOS Mac Catalyst
View code