This article summarizes the key developer-related features introduced in macOS 10.13, which runs on currently shipping Macs. The article also lists the documents that describe new features in more detail.
For late-breaking news and information about known issues, see Release Notes at https://developer.apple.com/ios/download.
For the complete list of new APIs, choose Show API Changes from the dropdown at the top of any page of the API Reference documentation.
To learn about what’s new in Swift, see Swift Language and The Swift Programming Language (Swift 4).
New in macOS 10.13 - Support for binary (non-text) barcodes.
Added APIs to AV Foundation, Core Image, and SiriKit to support detection, decoding, and creation of barcodes with binary content.
CIBarcodeDescriptor, a new barcode descriptor object to Core Image to provide interoperability with AV Foundation and the Vision APIs.
New in macOS 10.13 - Download font assets.
Improved Available Storage Space API.
Added new keys to
URLfor different usage scenarios.
volumeAvailableCapacityForImportantUsageKeyreturns total amount of bytes available for operations explicitly requested by user or essential to proper functioning of your apps.
volumeAvailableCapacityForOpportunisticUsageKeyreturns total amount of bytes available for storing non-essential items, such as content pre-downloaded for performance that may or may not get used by the user.
Graphics and Games
New in macOS 10.13 - High performance image analysis.
Added the Vision framework for detecting faces, barcodes, text, image horizon, and rectangular regions.
Integrates with Core ML to run custom models on images.
Tracks objects in video.
Includes support for image registration.
New in macOS 10.13 - Write custom image blending kernels for Core Image.
New in macOS 10.13 - Lightweight render destination.
CIRenderDestination, an object for creating renderers that return to the caller after the work has been issued. Functionality includes specifying all the destination attributes of the renderer for different destinations including
CVPixelBuffer, GL textures, Metal textures, and memory.
Added new Core Image filters
Metal 2 contains significant additions and updates to Metal, the Metal Shading Language, and the Metal Performance Shaders framework. Items below indicate where the updates occur:
– MTL: An update in the Metal framework.
– MSL: An update in the Metal Shading Language.
– MPS: An update in the Metal Performance Shaders framework.
MPS: New in Metal 2 - Cross-platform Metal Performance Shaders support.
All of the Metal Performance Shaders functionality is available in iOS 11.0, tvOS 11.0, and macOS 10.13.
MPS: New in macOS 10.13 - Neural network support.
Added support for neural networks to the Metal Performance Shaders framework.
Added graphs to offer a higher level API for simplifying the creation of neural networks, including objects that allow state to be transferred between nodes in a neural network.
Added Convolutional Neural Networks (CNN) to support implementing and running deep learning using previously obtained training data.
Added Recurrent Neural Networks for implementing inference on images and matrices.
New in macOS 10.13 - Indirect Argument Buffers.
Group your resources into an indirect argument buffer (IAB) to reduce CPU overhead.
MSL: Added the
[[id(n)]]attribute qualifier to identify resources in an IAB structure.
MTL: Added the
MTLIndirectArgumentEncoderprotocol to encode resources into an IAB.
MTL: New in macOS 10.13 - Programmable sample positions.
Configure the position of samples when rendering to a multisampled render target.
MTLRenderPassDescriptorclass to set and get sample positions for a render pass.
MSL: New in macOS 10.13 - Uniform type.
uniformtype to declare variables that are uniform for all threads executing the graphics or compute function of a draw or dispatch call.
MSL: New in macOS 10.13 - Array of samplers.
array<sampler, size_t N>type to store an array of samplers.
MTL: New in macOS 10.13 - BGR10A2 Pixel Format.
bgr10A2Unormpixel format to present wide color content on P3 displays.
MSL: New in macOS 10.13 - Raster order groups.
Organize access to fragment function resources by using explicit raster order groups.
[[raster_order_group(index)]]attribute qualifier to assign resources to a raster order group.
MTL: New in macOS 10.13 - Non-uniform threadgroup size.
New in macOS 10.13 - Multiple viewports.
Specify multiple active viewports for a draw call and selectively draw to separate areas of a render target.
MSL: Added the
[[viewport_array_index]]attribute qualifier to select a specific viewport for transformation and clip operations.
MTL: New in macOS 10.13 - Device notifications.
MTLNotificationNamevalues for Metal apps to respond to a GPU that is added to or removed from the system.
MTL: New in macOS 10.13 - VR support.
Display Metal content on head-mounted displays (HMDs).
Added a direct-to-display fast path to bypass the macOS window server.
Improved performance to help target 90 FPS frame rates.
MPS: Added new filters.
Added filters for image statistics, such as computing the mean and variance for an image region.
Added filters for combining two images together, such as an element-wise sum and finding key points.
Added filters for matrix decomposition and solving, such as decomposition using Cholesky or LU (Lower Upper) factorization.
MSL: Extended function specialization.
[[raster_order_group(index)]]attribute qualifiers to work with function constants.
Members of a structure used in a graphics, compute, or user function can be used with function constants.
MTL: Extended vertex formats.
MTLVertexFormatvalues for small formats such as
MTL: Updated the Metal framework to support resource heaps on macOS.
MSL: Updated the Metal Shading Language to support arrays of textures on macOS.
array<typename T, size_t N>type to store an array of textures.
MTL: Updated the Metal framework to support linear textures on macOS.
makeTexture(descriptor:offset:bytesPerRow:)method to the
MTLBufferprotocol to create 2D linear textures that share their storage with a source buffer.
MSL: Extended SIMD-group thread synchronization.
Added new functions and attribute qualifiers for SIMD-group variables for SIMD-group threads.
New in macOS 10.13 - Support for machine learning models.
Added the Core ML framework for easily integrating machine learning models into apps.
Updated MapKit for clearer display of developer data.
Media and Web
New in macOS 10.13 - Support for High Efficiency Video Coding (HEVC).
High Efficiency Video Coding (HEVC) is a new standard for video encoding that offers substantially better compression than H.264 at the same level of visual quality.
Use AV Foundation to playback movies containing HEVC encoded tracks, and to capture and export videos.
VideoToolboxclients can encode and decode HEVC video bitstreams.
New in macOS 10.13 - Support for adding project creation extensions to the Photos app.
com.apple.photo-project, a new extension point that enables adding project creation features to the Photos app.
PHProjectInfoto the Photos framework for adding and managing photo creation projects.
PHProjectChangeRequest, an object for saving session state of photo creation projects.
New in macOS 10.13 - AirPlay 2.
Improved AirPlay reliability for some audio playback interfaces in AV Foundation. To take advantage of the increased reliability, play audio using
AVPlayeror the new
Added multiple speaker support to AirPlay for long-form audio such as music and podcasts. To mark your application as presenting long-form audio, invoke the
AVAudioSessionRouteSharingPolicyLongFormas the parameter value.
FairPlay streaming key management.
Improved the functionality of
AVContentKeySessionto initiate content key requests independent of playback or downloading of media assets. Objects conforming to the
AVContentKeyRecipientprotocol, such as
AVURLAsset, can be added as a recipient to
AVContentKeySessionto obtain access to existing content keys and initiate new content key requests
New in macOS 10.13 - APFS support.
The OS Installer will automatically convert your system/root volume to APFS as a part of the installation process. The following formats are converted to APFS: plain HFS+, CoreStorage, FileVault encrypted, and Fusion systems.
APFS is now supported as a boot volume with full, native EFI support.
File Vault is fully supported by APFS on macOS.
APFS supports case-insensitive and case-sensitive variants.
APFS now supports an on-disk format change to allow for normalization-insensitive Case Sensitive volumes. This means that file names in either Unicode NFC or NFD will point to the same files.
Backup Support for APFS source volumes is now supported. The backup destination should still remain HFS+ in this release.
APFS supports up to Unicode revision 9 for filenames. HFS+ supported only up to revision 3.2.
APFS supports exporting of volumes over SMB and NFS.
Updated the Core Bluetooth framework to match across iOS, tvOS, watchOS, and macOS, and marked call availability based on platform.