tvos

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

tvOS Platform

tvOS平台

tvOS-specific development for Apple TV living room experiences.
针对Apple TV客厅体验的tvOS专项开发。

Agent Workflow (MANDATORY)

Agent工作流程(强制要求)

Before ANY implementation, use
TeamCreate
to spawn 3 agents:
  1. fuse-ai-pilot:explore-codebase - Analyze existing tvOS patterns
  2. fuse-ai-pilot:research-expert - Verify latest tvOS 26 docs via Context7/Exa
  3. mcp__apple-docs__search_apple_docs - Check tvOS patterns
After implementation, run fuse-ai-pilot:sniper for validation.

在进行任何实现之前,使用
TeamCreate
生成3个Agent:
  1. fuse-ai-pilot:explore-codebase - 分析现有tvOS开发模式
  2. fuse-ai-pilot:research-expert - 通过Context7/Exa验证最新tvOS 26文档
  3. mcp__apple-docs__search_apple_docs - 检查tvOS开发模式
实现完成后,运行fuse-ai-pilot:sniper进行验证。

Overview

概述

When to Use

适用场景

  • Building Apple TV applications
  • Video and audio streaming
  • Focus-based navigation
  • Siri Remote interactions
  • Multi-user experiences
  • Game controller support
  • 构建Apple TV应用程序
  • 视频和音频流服务
  • 基于焦点的导航
  • Siri Remote交互
  • 多用户体验
  • 游戏控制器支持

Why tvOS Skill

选择tvOS Skill的理由

FeatureBenefit
Focus systemLarge screen navigation
Liquid GlassModern TV UI (tvOS 26)
Media playbackAVKit integration
Remote controlSiri Remote gestures

功能优势
焦点系统大屏导航体验
Liquid Glass现代电视UI(tvOS 26)
媒体播放集成AVKit
遥控操作Siri Remote手势控制

tvOS 26 Features

tvOS 26 新功能

Liquid Glass on TV

电视端Liquid Glass效果

swift
Button("Watch Now") { }
    .buttonStyle(.bordered)
    .glassEffect(.regular)  // Glass effect on focus

TabView {
    // Tab bar with Liquid Glass
}
swift
Button("Watch Now") { }
    .buttonStyle(.bordered)
    .glassEffect(.regular)  // Glass effect on focus

TabView {
    // Tab bar with Liquid Glass
}

Focus System

焦点系统

swift
struct ContentView: View {
    @FocusState private var focused: Bool

    var body: some View {
        Button("Play") { }
            .focused($focused)
            .scaleEffect(focused ? 1.1 : 1.0)
    }
}

swift
struct ContentView: View {
    @FocusState private var focused: Bool

    var body: some View {
        Button("Play") { }
            .focused($focused)
            .scaleEffect(focused ? 1.1 : 1.0)
    }
}

Reference Guide

参考指南

NeedReference
Focus, selection statesfocus-system.md
AVKit, video playbackmedia-playback.md
Siri Remote, gesturesremote-control.md

需求参考文档
焦点、选择状态focus-system.md
AVKit、视频播放media-playback.md
Siri Remote、手势remote-control.md

Best Practices

最佳实践

  1. Large UI elements - Readable from 10 feet
  2. Focus feedback - Clear visual indication
  3. Simple navigation - Minimal depth
  4. Remote-friendly - Siri Remote gestures
  5. Media-first - Optimize for video/audio
  6. Multi-user - Support user switching
  1. 大尺寸UI元素 - 确保10英尺外可清晰阅读
  2. 焦点反馈 - 清晰的视觉指示
  3. 简洁导航 - 最小化层级深度
  4. 适配遥控 - 优化Siri Remote手势操作
  5. 媒体优先 - 针对视频/音频进行优化
  6. 多用户支持 - 实现用户切换功能