Apple の Article リンク集に続いてサンプルコードへのリンク集を作ってみました。Documentation Archive 入りしていない比較的新しいサンプルコードになります。
ARKit
- Adding Realistic Reflections to an AR Experience
- Capturing Body Motion in 3D
- Creating a Multiuser AR Experience
- Creating an Immersive AR Experience with Audio
- Detecting Images in an AR Experience
- Effecting People Occlusion in Custom Renderers
- Occluding Virtual Content with People
- Placing Objects and Handling 3D Interaction
- Recognizing and Labeling Arbitrary Objects
- Saving and Loading World Data
- Scanning and Detecting 3D Objects
- SwiftShot: Creating a Game for Augmented Reality
- Tracking and Altering Images
- Tracking and Visualizing Faces
- Tracking and Visualizing Planes
AVFoundation
AirPlay 2
Audio Track Engineering
Cameras and Media Capture
- AVCam: Building a Camera App
- AVCamFilter: Applying Filters to a Capture Stream
- AVMultiCamPiP: Capturing from Multiple Cameras
- Enhancing Live Video by Leveraging TrueDepth Camera Data
- Streaming Depth Data from the TrueDepth Camera
Media Assets, Playback, and Editing
- Creating a Movie Player App with Basic Playback Controls
- Using AVFoundation to Play and Persist HTTP Live Streams
- Using HEVC Video with Alpha
AVKit
- Adopting Custom Interactive Overlays, Channel Flipping, and Parental Controls in tvOS Video Playback
- Using AVKit in iOS
Accelerate
simd
vDSP
Discrete Cosine Transforms
Fast Fourier Transforms
Multichannel Biquadratic IIR Filters
vImage
- Adding a Bokeh Effect
- Adjusting Saturation and Applying Tone Mapping
- Adjusting the Brightness and Contrast of an Image
- Applying vImage Operations to Video Sample Buffers
- Blurring an Image
- Converting Color Images to Grayscale
- Converting Luminance and Chrominance Planes to an ARGB Image
- Finding the Sharpest Image in a Sequence of Captured Images
- Reading From and Writing to Core Video Pixel Buffers
- Real-Time Video Effects with vImage
- Reducing Artifacts in Resampled Images
- Specifying Histograms with vImage
- Standardizing Arbitrary Image Formats for Processing
AppKit
Cocoa Bindings
Documents, Files, and iCloud
Touch Bar
Views and Controls
Collection View
- Using Collection View Compositional Layouts and Diffable Data Sources
- Organize Your User Interface with a Stack View
Apple CryptoKit
AudioToolbox
AuthenticationServices
BackgroundTasks
CarPlay
ClassKit
Compression
- Compressing and Decompressing Files with Stream Compression
- Compressing and Decompressing Files with Swift Stream Compression
Core Bluetooth
Core Data
Core Haptics
- Playing Collision-Based Haptic Patterns
- Playing a Custom Haptic Pattern from a File
- Updating Continuous and Transient Haptic Parameters in Real Time
Core Location
Core ML
Core ML API
- Personalizing a Model with On-Device Updates
- Finding Answers to Questions in a Text Document
- Integrating a Core ML Model into Your App
Core NFC
Create ML
Foundation
App Extension Support
Archives and Serialization
Data Formatting
Filters and Sorting
Task Management
- Continuing User Activities with Handoff
- Increasing App Usage with Suggestions Based on User Activities
HealthKit
Samples
Workouts and Activity Rings
HomeKit
LocalAuthentication
- Accessing Keychain Items with Face ID or Touch ID
- Logging a User into Your App with Face ID or Touch ID
MapKit
MapKit Annotations
- Annotating a Map with Custom Data
- Decluttering a Map with MapKit Annotation Clustering
- Optimizing Map Views with Filtering and Camera Constraints
- Searching for Nearby Points of Interest
Media Player
Messages
Metal
Basic Tasks and Concepts
Buffers
- Argument Buffers with Arrays and Resource Heaps
- Argument Buffers with GPU Encoding
- Basic Argument Buffers
- Creating and Sampling Textures
- Deferred Lighting
Drawable Objects
- Creating a Custom Metal View
- Dynamic Terrain with Argument Buffers
- Forward Plus Lighting with Tile Shading
Frame Capture Debugging Tools
GPU Selection in macOS
- Device Selection and Fallback for Compute Processing
- Device Selection and Fallback for Graphics Rendering
- Hello Compute
Indirect Command Buffers
- Encoding Indirect Command Buffers on the CPU
- Encoding Indirect Command Buffers on the GPU
- LOD with Function Specialization
- Migrating OpenGL Code to Metal
- Mixing Metal and OpenGL Rendering in a View
- Modern Rendering with Metal
- Reflections with Layer Selection
- Supporting Simulator in a Metal App
Synchronization
- Image Filter Graph with Heaps and Events
- Image Filter Graph with Heaps and Fences
- Synchronizing CPU and GPU Work
- Using a Render Pipeline to Render Primitives
Metal Performance Shaders
- Animating and Denoising a Raytraced Scene
- Metal for Accelerating Ray Tracing
- Training a Neural Network with Metal Performance Shaders
MetricKit
Network
NetworkExtension
NotificationCenter
PencilKit
PhotoKit
Quartz
PDFKit
RealityKit
SiriKit
Media
Payments
Photos
Ride Booking
Siri Event Suggestions
Workouts
Speech
StoreKit
In-App Purchase
- Generating a Subscription Offer Signature Using Node.js
- Offering, Completing, and Restoring In-App Purchases
Recommendations and Reviews
SwiftUI
Drawing and Animation
TVML
TVMLKit
TVMLKit JS
- Binding JSON Data to TVML Documents
- Creating a Client-Server TVML App
- Playing Media in a Client-Server App
- Responding to User Interaction
TVServices
TVUIKit
UIKit
Accessibility
App and Environment
Scenes
Appearance Customization
Deprecated Symbols
Drag and Drop
- Adopting Drag and Drop in a Custom View
- Adopting Drag and Drop in a Table View
- Data Delivery with Drag and Drop
Menus and Shortcuts
Text Display and Fonts
Touches, Presses, and Gestures
- Illustrating the Force, Altitude, and Azimuth Properties of Touch Input
- Leveraging Touch Input for Drawing Apps
View Controllers
- Building a Document Browser-Based App
- Building an App Based on the Document Browser View Controller
- Disabling Pulling Down a Sheet
- Restoring Your App’s State
Views and Controls
Collection Views
- Changing the Appearance of Selected and Highlighted Cells
- Customizing Collection View Layouts
- Selecting Multiple Items with a Two-Finger Pan Gesture
- UIKit Catalog: Creating and Customizing Views and Controls
Vision
- Analyzing Image Similarity with Feature Print
- Classifying Images for Categorization and Search
- Classifying Images with Vision and Core ML
- Detecting Objects in Still Images
- Highlighting Areas of Interest in an Image Using Saliency
- Locating and Displaying Recognized Text on a Document
- Reading Phone Numbers in Real Time
- Recognizing Objects in Live Capture
- Selecting a Selfie Based on Capture Quality
- Structuring Recognized Text on a Document
- Tracking Multiple Objects or Rectangles in Video
- Tracking the User’s Face in Real Time
- Training a Create ML Model to Classify Flowers
- Understanding a Dice Roll with Vision and Object Detection