What’s new with tvos

Generated on 8/3/2024

1 search

At WWDC 2024, Apple introduced several new features and updates for tvOS, particularly focusing on the transition from TVML to SwiftUI. Here are the key highlights:

  1. Deprecation of TVML: Apple is officially deprecating TVMLKit. While it will remain available as part of tvOS, it will no longer be updated. This marks a significant shift towards using SwiftUI for building tvOS apps.

  2. SwiftUI for tvOS: SwiftUI now has everything needed to build rich, fully-featured media catalog and streaming apps for tvOS. This includes:

    • Native tvOS UI with design cues specifically aimed at producing great tvOS apps.
    • The ability to share code with apps for iPhone, iPad, Mac, and Apple Vision Pro.
    • New features and flexibility beyond what TVMLKit offered.
  3. Unified Development: Apps for tvOS can now be built using the same Swift language and tools used for iOS, iPadOS, macOS, watchOS, and visionOS. This allows for a more unified development experience and easier code sharing across platforms.

  4. New APIs and Features:

    • Borderless Button Style: Provides the platform's standard content lockup, appearance, and interaction.
    • Container Relative Frames: Simplifies building content shelves.
    • New Tab View APIs: Allows for different types of content and supports both tab bar and sidebar representations.
  5. Sample Projects and Resources: Apple provided sample projects and additional resources to help developers transition from TVML to SwiftUI and to explore the new features in tvOS 18.

For more detailed information, you can refer to the session Migrate your TVML app to SwiftUI.

Relevant Sessions

These sessions provide comprehensive insights into the new capabilities and best practices for developing tvOS apps using SwiftUI.