View in English

  • Apple 开发者
    • 入门汇总

    探索“入门汇总”

    • 概览
    • 学习
    • Apple Developer Program

    及时了解最新动态

    • 最新动态
    • 开发者你好
    • 平台

    探索“平台”

    • Apple 平台
    • iOS
    • iPadOS
    • macOS
    • Apple tvOS
    • visionOS
    • watchOS
    • App Store

    精选

    • 设计
    • 分发
    • 游戏
    • 配件
    • 网页
    • Home
    • CarPlay 车载
    • 技术

    探索“技术”

    • 概览
    • Xcode
    • Swift
    • SwiftUI

    精选

    • 辅助功能
    • AI 与机器学习
    • App Intents
    • Apple 智能
    • 游戏
    • 安全性
    • Xcode Cloud
    • 社区

    探索“社区”

    • 概览
    • “与 Apple 会面交流”活动
    • 社区主导的活动
    • 开发者论坛
    • 开源

    精选

    • WWDC
    • Swift Student Challenge
    • 开发者故事
    • App Store 大奖
    • Apple 设计大奖
    • Apple Developer Centers
    • 文档

    探索“文档”

    • 文档库
    • 技术概述
    • 示例代码
    • 《人机界面指南》
    • 视频

    发布说明

    • 精选更新
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • Apple tvOS
    • Xcode
    • 下载

    探索“下载”

    • 所有下载
    • 操作系统
    • 应用程序
    • 设计资源

    精选

    • Xcode
    • TestFlight
    • 字体
    • SF Symbols
    • Icon Composer
    • 支持

    探索“支持”

    • 概览
    • 帮助指南
    • 开发者论坛
    • “反馈助理”
    • 联系我们

    精选

    • 《开发者账户帮助》
    • 《App 审核指南》
    • 《App Store Connect 帮助》
    • 即将实行的要求
    • 协议和准则
    • 系统状态
  • 快速链接

    • 活动
    • 新闻
    • 论坛
    • 示例代码
    • 视频
 

视频

打开菜单 关闭菜单
  • 专题
  • 所有视频
  • 关于

更多视频

  • 简介
  • 概要
  • SwiftUI 初学者小组实验室

    参加我们的线上活动,围绕 SwiftUI 入门这一主题,提出问题、获取建议,并关注相关的精彩讨论。活动语言为英语。

    章节

    • 0:00:00 - Introduction
    • 0:08:33 - As a beginner, should I use React Native or SwiftUI? React Native lets me ship on both platforms — what are SwiftUI's advantages?
    • 0:10:54 - As an accounting student with zero coding knowledge, what's the best approach to learn coding and build an app with SwiftUI?
    • 0:14:53 - I'm a CS student starting iOS development. To become a job-ready iOS engineer, what roadmap would you follow from Swift fundamentals to advanced app development, and what skills matter most?
    • 0:18:50 - For a beginner, what exactly happens under the hood when I use @State, and why can't I just use a standard Swift var for UI data?
    • 0:22:59 - I'm a web designer knowing HTML, CSS, some PHP/JS/Lua. How easy is it for someone with little traditional coding background to get started with Swift and SwiftUI?
    • 0:27:08 - Where should I start? There are so many SwiftUI tutorials, even on Apple's site, and it's confusing what to do first. I'm a Java developer beginning iOS.
    • 0:31:36 - What are best practices in SwiftUI to handle frequent real-time state updates (like sensor data) without unnecessary redraws or UI lag?
    • 0:36:37 - Has Apple Intelligence within Xcode been trained on SwiftUI documentation? Vibe-coding with Gemini was OK but hit recurring Swift issues.
    • 0:40:38 - What are best practices to make my SwiftUI views performant and avoid unnecessary view updates?
    • 0:48:52 - In a world of agentic AI, how do you use AI within Xcode and SwiftUI so a learner is actually learning, not just having the AI write the code? Is there a learning plan that uses AI without derailing education?
    • 0:55:57 - Is there an official one-page overview or flow diagram showing how Views, state, bindings, models, and modifiers fit together in SwiftUI?
    • 0:56:48 - When I use AI tools for SwiftUI, code looks right but won't compile or misbehaves. How can I use Xcode's AI tools effectively as a beginner so I learn correct patterns, not bad habits?
    • 0:57:58 - What's one thing announced this week that beginners will overlook but will matter a lot as they grow?
    • 0:59:13 - How do you best convert an app design from a designer into SwiftUI — do you recommend Xcode's coding assistant, and which one?

    资源

      • 高清视频
      • 标清视频
  • 搜索此视频…
    • 0:00:00 - Introduction
    • Engineers from the SwiftUI team introduce themselves and set up a beginner-focused session covering how to start learning SwiftUI, the @State mental model, performance and view updates, learning effectively alongside AI coding tools, and turning designs into SwiftUI.

    • 0:08:33 - As a beginner, should I use React Native or SwiftUI? React Native lets me ship on both platforms — what are SwiftUI's advantages?
    • SwiftUI is intimately tied to Apple's platforms, so you get new design language and system capabilities (like Liquid Glass) natively and immediately, rather than waiting for a cross-platform layer to catch up. It also spans all Apple platforms — iOS, iPadOS, macOS, watchOS, visionOS — from largely shared code, giving deep integration and the best fidelity on Apple devices.

    • 0:10:54 - As an accounting student with zero coding knowledge, what's the best approach to learn coding and build an app with SwiftUI?
    • Start from your own life: pick a small app idea you actually care about (perhaps something from your accounting world) so motivation carries you through. Then work through the guided tutorials to learn the fundamentals hands-on, building something real in small steps rather than trying to learn everything abstractly first.

    • 0:14:53 - I'm a CS student starting iOS development. To become a job-ready iOS engineer, what roadmap would you follow from Swift fundamentals to advanced app development, and what skills matter most?
    • Begin with the Swift language itself, then learn SwiftUI for building interfaces and the core data-flow concepts (@State, bindings, @Observable). Layer in networking, persistence (SwiftData), and concurrency as you go. Prioritize building complete small apps end to end over memorizing APIs — shipping real projects is what makes the skills stick and demonstrates job readiness.

    • 0:18:50 - For a beginner, what exactly happens under the hood when I use @State, and why can't I just use a standard Swift var for UI data?
    • SwiftUI views are lightweight, frequently-recreated value descriptions of the UI, so a plain var would be reset every time the view struct is rebuilt. @State moves that storage outside the view into storage SwiftUI manages, so the value persists across rebuilds and, when it changes, tells SwiftUI to update the affected views. That persistence-plus-observation is why @State exists.

    • 0:22:59 - I'm a web designer knowing HTML, CSS, some PHP/JS/Lua. How easy is it for someone with little traditional coding background to get started with Swift and SwiftUI?
    • That background is a solid foundation — you already think about structure and layout. SwiftUI's declarative style will feel familiar coming from HTML/CSS, and Swift is approachable. Start with the guided tutorials and translate concepts you know (markup, styling, state) into their SwiftUI equivalents; you're better positioned than you might think.

    • 0:27:08 - Where should I start? There are so many SwiftUI tutorials, even on Apple's site, and it's confusing what to do first. I'm a Java developer beginning iOS.
    • Begin with Apple's initial guided SwiftUI tutorials, which give a structured path rather than a scattering of topics (the panel arranged to link them). Coming from Java, you'll pick up Swift quickly; focus first on Swift basics and the intro SwiftUI tutorials before branching into the many specialized resources.

    • 0:31:36 - What are best practices in SwiftUI to handle frequent real-time state updates (like sensor data) without unnecessary redraws or UI lag?
    • Scope updates tightly so high-frequency data only invalidates the views that display it, not the whole hierarchy. Ingest the stream off the main actor and coalesce or throttle updates to a rate the UI actually needs before publishing to observed state, so you're not redrawing on every sample. Keep the observed state small and local to the affected views.

    • 0:36:37 - Has Apple Intelligence within Xcode been trained on SwiftUI documentation? Vibe-coding with Gemini was OK but hit recurring Swift issues.
    • The key mechanism is the new skills shipping with Xcode, which give the coding agent accurate, current knowledge of SwiftUI and Apple APIs — addressing the recurring mistakes a general external model makes. Enable and lean on those skills so the assistant follows correct, up-to-date SwiftUI patterns rather than outdated or invented ones.

    • 0:40:38 - What are best practices to make my SwiftUI views performant and avoid unnecessary view updates?
    • SwiftUI itself is capable of highly performant UI — Xcode's own agentic coding experience is built in it. The core practice is minimizing invalidation: keep each view's observed dependencies small so only what actually changed re-evaluates, avoid putting broadly-read state high in the hierarchy, and profile with the SwiftUI Instrument to find views updating more than they should.

    • 0:48:52 - In a world of agentic AI, how do you use AI within Xcode and SwiftUI so a learner is actually learning, not just having the AI write the code? Is there a learning plan that uses AI without derailing education?
    • Use the AI as a tutor, not just a code generator: whenever it produces code you don't understand, ask it to explain what each part does and why. Treating every generated chunk as a prompt to learn — questioning and verifying it — keeps you building real understanding rather than accumulating code you can't maintain.

    • 0:55:57 - Is there an official one-page overview or flow diagram showing how Views, state, bindings, models, and modifiers fit together in SwiftUI?
    • There's no single flow-diagram document, but several resources fill that role: the Intro to SwiftUI session (which builds an app from scratch), the SwiftUI Essentials video, and a getting-started-with-SwiftUI one-pager on the developer site. The sessions in particular teach the mental model quickly — how views, state, bindings, and modifiers fit together — so they come highly recommended.

    • 0:56:48 - When I use AI tools for SwiftUI, code looks right but won't compile or misbehaves. How can I use Xcode's AI tools effectively as a beginner so I learn correct patterns, not bad habits?
    • Use the new Xcode skills, which carry SwiftUI best practices so the assistant recommends current, correct patterns instead of the broken ones a general model often produces. Two more habits help: let the model compile its work — Swift moves so many errors to compile time that the assistant can catch and iterate on them — and go piece by piece rather than letting it one-shot the whole implementation, which tends to produce more errors and less encapsulated code.

    • 0:57:58 - What's one thing announced this week that beginners will overlook but will matter a lot as they grow?
    • Layout flexibility. There were substantial layout improvements this year, and building flexible, adaptive layouts matters enormously as your apps grow to span iPad, Mac, and Vision Pro — all of which demand UI that adapts across very different sizes. Investing early in adaptable layout pays off as you target more platforms.

    • 0:59:13 - How do you best convert an app design from a designer into SwiftUI — do you recommend Xcode's coding assistant, and which one?
    • There's no Xcode skill that converts a design automatically. One approach is to do the translation yourself — study what the designer built and map it onto SwiftUI's layout primitives (stacks, grids, spacers, alignment) so you understand the structure. There are also Figma and Sketch connections that generate SwiftUI code from designs made in those tools, which are worth checking out.

开发者页脚

  • 视频
  • WWDC26
  • SwiftUI 初学者小组实验室
  • 打开菜单 关闭菜单
    • iOS
    • iPadOS
    • macOS
    • Apple tvOS
    • visionOS
    • watchOS
    • App Store
    打开菜单 关闭菜单
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    打开菜单 关闭菜单
    • 辅助功能
    • 配件
    • AI 与机器学习
    • Apple 智能
    • 音频与视频
    • 增强现实
    • 商务
    • 设计
    • 分发
    • 教育
    • 游戏
    • 健康与健身
    • App 内购买项目
    • 本地化
    • 地图与位置
    • 安全性
    • Safari 浏览器与网页
    打开菜单 关闭菜单
    • 文档
    • 下载
    • 示例代码
    • 视频
    • 文档归档
    打开菜单 关闭菜单
    • 帮助指南与文章
    • 联系我们
    • 论坛
    • 反馈与错误报告
    • 系统状态
    打开菜单 关闭菜单
    • Apple 开发者
    • App Store Connect
    • 证书、标识符和描述文件
    • “反馈助理”
    打开菜单 关闭菜单
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • 安全赏金计划
    • Security Research Device Program
    打开菜单 关闭菜单
    • 与 Apple 会面交流
    • Apple Developer Center
    • App Store 大奖
    • Apple 设计大奖
    • Apple Developer Academy
    • WWDC
    阅读最近新闻。
    获取 Apple Developer App。
    版权所有 © 2026 Apple Inc. 保留所有权利。
    使用条款 隐私政策 协议和准则