This article summarizes the key developer-related features introduced in tvOS 11.0, which runs on currently shipping tvOS devices. 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/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 tvOS 11.0 - Full right-to-left language support.
First party localization support for Arabic and Hebrew.
Added support in UIKit.
Added support in TVMLKit including a new API for easily adapting the layout direction of the user interface.
New in tvOS 11.0 - TVML support in Web Inspector.
Added visual debugging of TVMLKit DOM including run-time manipulation.
Display TVMLKit XHR requests to the Network tab.
Display TVMLKit local session storage key-value pairs in the Storage tab.
Added support for debugging focus-related interactions.
Added runtime debugging in lldb using the
Added logging of live focus updates by enabling the
Enhanced image layering.
Enhanced developer customization of focus events.
Added playing a custom sound and not playing a sound for a focus movement change.
plain, a focusable button with no background blur.
UIFocusDidUpdate, a notification for changes in focus element.
UIFocusMovementDidFail, a notification that the user tried to change focus in a direction with no focusable element.
Improved Dynamic Type Support.
UIFontMetrics, an object for creating custom fonts that scale based on the currently selected text size.
Updated Auto Layout to dynamically adjust spacing based on the font sizes when a baseline anchor is part of a constraint that uses the system spacing.
Added an attribute to preserve vector data for PDF assets to enable smooth scaling. This can be used to show a larger version of bar items and segmented control items, as well as to adjust image sizes to match the user's text size. In the asset catalog, select "Preserve vector data" for the PDF to enabling scaling.
UIAccessibilityContentSizeCategoryImageAdjusting, a protocol for scaling images for accessibility text sizes.
preferredUserInterfaceStyle, a property for specifying the appearance of view controllers that overrides the system setting.
Improved Auto Layout support for Dynamic Type.
NSLayoutYAxisAnchorto provide factory methods that create constraints using the system spacing between two anchors. Previously the only way to create such a constraint was with the dash (
-) in the Visual Format Language.
Added an option to
NSLayoutFormatOptionsfor creating a Visual Format Language string that uses baseline-to-baseline spacing.
UIStackViewto enable system spacing and customized spacing.
Updated text content to work with App Password autofill.
primaryEdge, a property of
UISplitViewControllerfor setting the side for the master view controller.
blurOverFullScreen, a value for
UIModalPresentationStylefor progressive blurring of the screen behind a view controller.
Updates to keyboard extensions.
documentIdentifier, a property of
UITextDocumentProxythat specifies if the user is navigating to a new text widget.
needsInputModeSwitchKey, a property of
UIInputViewControllerto control the display of the input-mode switch key.
Added new system permissions in Settings for app access to included Keyboard Extensions.
Graphics and Games
New in tvOS 11.0 - SceneKit and SpriteKit focus support.
New in tvOS 11.0 - 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 tvOS 11.0 - Write custom image blending kernels for Core Image.
New in tvOS 11.0 - 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
Extended ReplayKit framework.
RPScreenRecorderfor screen capture and back camera support.
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 tvOS 11.0 - 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 tvOS 11.0 - 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 tvOS 11.0 - 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 tvOS 11.0 - Uniform type.
uniformtype to declare variables that are uniform for all threads executing the graphics or compute function of a draw or dispatch call.
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
Added dual-source blending support to tvOS.
Output two source colors for a fixed-function blending operation to a single render target.
MSL: Added a new
[[index(i)]]attribute qualifier to the
[[color(n)]]attribute qualifier to output a second source color.
MTLBlendFactorto operate on a second source color.
New in tvOS 11.0 - Support for machine learning models.
Added the Core ML framework for easily integrating machine learning models into apps.
New in tvOS 11.0 - Promoting in-app purchases on the App Store.
Developers can promote up to 20 in-app purchases on their App Store product page. Customers can start their purchase on the App Store, and then be taken to the app to complete the transaction.
paymentQueue(_:shouldAddStore:for:), a new method of
SKPaymentTransactionObserverfor promoted in-app purchases. Apps need to support this delegate for promoted in-app purchases to display on the product page.
Updated the User Notification background execution APIs to support tvOS including waking the app in the background for silent notifications.
TVContentItemImageTrait, a structure used in new methods that provide URLs to light and dark images for Top Shelf.
Enhanced triggers for HomeKit.
HMCharacteristicThresholdRangeEventfor representing devices that report their state as a number range, such as blinds that report a position from 0 to 1.
HMPresenceEventfor adding a condition based on the presence of users.
HMEventTriggerto enable multiple occurrences of a trigger.
Receive updates of the home hub state by implementing
Updated MapKit for clearer display of developer data.
mutedStandard, a new map display mode that emphasizes developer data.
MKMarkerAnnotationView, a view that has the look and feel of markers in modern maps. Developers can configure several elements including the background color, the displayed text or glyph, and the color of the text or glyph.
Added properties to customize how annotations behave when collisions occur. Developers use a combination of
clusteringIdentifierto influence which annotations remain on the map.
Media and Web
New in tvOS 11.0 - 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 export videos.
VideoToolboxclients can encode and decode HEVC video bitstreams.
New in tvOS 11.0 - Support for High Efficiency Image Format (HEIF).
High Efficiency Image Format (HEIF) is a new standard of image compression that nearly doubles current data compression ratios for the same level of image quality.
Added functionality to the Photos and Core Image frameworks to display, encode, and export HEIF images.
New in tvOS 11.0 - TVML templates.
Added prototypes, TVML templates for reducing the runtime size of the DOM for creating efficient apps and improving performance.
Added data binding to TVML templates to associate templates with backing data.
Added paging to TVML templates needs more for efficient display of large catalogs of content.
To learn more about TVML templates and data binding, see the TVML Programming Guide
New in tvOS 11.0 - 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
Added more Live Photo adjustments.
Added a collection of Live Photo adjustments, called effects, that render the live photo as an Loop, Bounce, or Long Exposure. Unlike regular live photos, Loop and Bounce videos will play in a continuous loop.
Updated the Core Bluetooth framework to match across iOS, tvOS, watchOS, and macOS, and marked call availability based on platform.
APFS is now the default filesystem.
APFS now has normalization-insensitive support for a case sensitive filesystem.