View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • Build your first app in Swift Playgrounds

    Learn how you can easily prototype and build apps with Swift Playgrounds. We'll show you how to create an app from a blank project, build its interface with SwiftUI, and use Swift Package Manager to add extra functionality from an open source package. We'll also explore how you can debug issues using Previews and the console and take you through submitting an app to App Store Connect for distribution via TestFlight.

    Recursos

      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC22

    • Create engaging content for Swift Playgrounds
  • Buscar neste vídeo...
    • 3:31 - First Tea Item

      Text("Jasmine Green")
    • 3:39 - List Of Teas

      Text("Jasmine Green")
      Text("English Breakfast")
      Text("Byte's Oolong")
      Text("Golden Tippy Assam")
      Text("Matt P's Tea Party")
      Text("Darjeeling")
      Text("Genmaicha")
      Text("Jasmine Green")
      Text("Vanilla Rooibos")
    • 4:45 - OrderedSet of Teas

      let teas: OrderedSet<String> = ["Byte's Oolong", "Golden Tippy Assam", "English Breakfast", "Matt P's Tea Party", "Darjeeling", "Genmaicha", "Jasmine Green", "Vanilla Rooibos"]
    • 5:28 - ForEach View

      ForEach(teas, id: \.self) { tea in
           Text(tea)
      }
    • 8:45 - Initial Preview Provider

      struct TeaWheelView_Previews: PreviewProvider {
          static let items: [String] = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"]
          static var previews: some View {
              Text("Hello, world!")
          }
      }
    • 9:22 - Preview Provider with TeaWheelView

      struct TeaWheelView_Previews: PreviewProvider {
          static let items: [String] = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"]
          static var previews: some View {
              TeaWheelView(items, id: \.self)
                  .padding()
          }
      }
    • 10:40 - TeaWheelView in Assistant Tab

      TeaWheelView(dataSource.teas, action: { tea in
          lastPickedTea = tea
          showPickAlert = true
      })
    • 11:55 - Preview Provider with Print Statement

      struct TeaWheelView_Previews: PreviewProvider {
          static let items: [String] = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"]
          static var previews: some View {
              TeaWheelView(items, id: \.self) {
                  print($0)
              }
                  .padding()
          }
      }

Developer Footer

  • Vídeos
  • WWDC22
  • Build your first app in Swift Playgrounds
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • 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 Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines