tvos
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesetvOS Platform
tvOS平台
tvOS-specific development for Apple TV living room experiences.
针对Apple TV客厅体验的tvOS专项开发。
Agent Workflow (MANDATORY)
Agent工作流程(强制要求)
Before ANY implementation, use to spawn 3 agents:
TeamCreate- fuse-ai-pilot:explore-codebase - Analyze existing tvOS patterns
- fuse-ai-pilot:research-expert - Verify latest tvOS 26 docs via Context7/Exa
- mcp__apple-docs__search_apple_docs - Check tvOS patterns
After implementation, run fuse-ai-pilot:sniper for validation.
在进行任何实现之前,使用生成3个Agent:
TeamCreate- fuse-ai-pilot:explore-codebase - 分析现有tvOS开发模式
- fuse-ai-pilot:research-expert - 通过Context7/Exa验证最新tvOS 26文档
- 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的理由
| Feature | Benefit |
|---|---|
| Focus system | Large screen navigation |
| Liquid Glass | Modern TV UI (tvOS 26) |
| Media playback | AVKit integration |
| Remote control | Siri 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
参考指南
| Need | Reference |
|---|---|
| Focus, selection states | focus-system.md |
| AVKit, video playback | media-playback.md |
| Siri Remote, gestures | remote-control.md |
| 需求 | 参考文档 |
|---|---|
| 焦点、选择状态 | focus-system.md |
| AVKit、视频播放 | media-playback.md |
| Siri Remote、手势 | remote-control.md |
Best Practices
最佳实践
- Large UI elements - Readable from 10 feet
- Focus feedback - Clear visual indication
- Simple navigation - Minimal depth
- Remote-friendly - Siri Remote gestures
- Media-first - Optimize for video/audio
- Multi-user - Support user switching
- 大尺寸UI元素 - 确保10英尺外可清晰阅读
- 焦点反馈 - 清晰的视觉指示
- 简洁导航 - 最小化层级深度
- 适配遥控 - 优化Siri Remote手势操作
- 媒体优先 - 针对视频/音频进行优化
- 多用户支持 - 实现用户切换功能