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
 

Vidéos

Ouvrir le menu Fermer le menu
  • Collections
  • Toutes les vidéos
  • À propos

Plus de vidéos

  • À propos
  • Code
  • What’s new in Xcode 16

    Discover the latest productivity and performance improvements in Xcode 16. Learn about enhancements to code completion, diagnostics, and Xcode Previews. Find out more about updates in builds and explore improvements in debugging and Instruments.

    Chapitres

    • 0:00 - Introduction
    • 0:29 - Updates in editing
    • 0:33 - Code completion
    • 1:01 - Adopting Swift 6 data-race safety guarantees
    • 2:49 - Improvements to Previews
    • 6:22 - Updates in builds
    • 6:26 - Explicit modules
    • 7:15 - Package resolution
    • 8:30 - What's new in debugging
    • 8:35 - Build process and debugging
    • 9:07 - Thread performance checker
    • 9:23 - The organizer
    • 12:16 - The RealityKit debugger
    • 12:55 - Meet Swift Testing
    • 18:42 - What's new in Instruments
    • 19:44 - Meet the flame graph
    • 21:38 - Wrap up

    Ressources

    • Previewing your app’s interface in Xcode
    • Xcode
    • Forum: Developer Tools & Services
    • Xcode updates
      • Vidéo HD
      • Vidéo SD

    Vidéos connexes

    WWDC24

    • Break into the RealityKit debugger
    • Demystify explicitly built modules
    • Go further with Swift Testing
    • Meet Swift Testing
    • Migrate your app to Swift 6
    • Run, Break, Inspect: Explore effective debugging in LLDB
  • Rechercher dans cette vidéo…
    • 3:37 - Inline State within Preview

      #Preview {
          @Previewable @State var currentFace = RobotFace.heart
      }
    • 3:45 - View using Inline State

      RobotFaceSelectorView(currentFace: $currentFace)
    • 3:53 - Complete Preview using Previewable

      #Preview {
          @Previewable @State var currentFace = RobotFace.heart
          
          RobotFaceSelectorView(currentFace: $currentFace)
      }
    • 4:40 - Type Conforming to PreviewModifier

      struct SampleRobotNamer: PreviewModifier {
          typealias Context = RobotNamer
      
          static func makeSharedContext() async throws -> Context {
              let url = URL(fileURLWithPath: "/tmp/local_names.txt")
              return try await RobotNamer(url: url)
          }
          
          func body(content: Content, context: Context) -> some View {
              content.environment(context)
          }
      }
    • 5:29 - Extension on PreviewTrait

      extension PreviewTrait where T == Preview.ViewTraits {
          @MainActor static var sampleNamer: Self = .modifier(SampleRobotNamer())
      }
    • 5:38 - Preview using created PreviewModifier

      #Preview(traits: .sampleNamer) {
          RobotNameSelectorView()
      }
    • 10:26 - AVPlayer Creation

      struct BOTanistAVPlayer {
          func player(url: URL) throws -> AVPlayer {
              let player = AVPlayer(url: url)
      
              return player
          }
      }
    • 11:28 - AVPlayer Call Site

      self.player = try? await robotVideoAVPlayer()
    • 11:57 - AVPlayer Initialization

      private nonisolated func robotVideoAVPlayer() async throws -> AVPlayer? {
          guard let url = Bundle.main.url(forResource: RobotVideo.resource, withExtension: RobotVideo.ext) else {
              throw BOTanistAppError.videoNotFound(forResource: RobotVideo.resource, withExtension: RobotVideo.ext)
          }
      
          let avPlayer = BOTanistAVPlayer()
          let player = try avPlayer.player(url: url)
      
          return player
      }
    • 13:42 - Initial Test Scaffolding

      import Testing
      @testable import BOTanist
      
      
      // When using the default init Plant(type:) make sure the planting style is graft
      @Test func plantingRoses() {
          // First create the two Plant structs
          
      
          // Verify with #expect
      }
    • 14:36 - Complete Test

      import Testing
      @testable import BOTanist
      
      
      // When using the default init Plant(type:) make sure the planting style is graft
      @Test
      func plantingRoses() {
          // First create the two Plant structs
          let plant = Plant(type: .rose)
          let expected = Plant(type: .rose, style: .graft)
      
          // Verify with #expect
          #expect(plant == expected)
      }
    • 17:35 - Custom Tag

      extension Tag {
          @Tag static var planting: Self
      }
    • 17:42 - Tag Usage in @Test

      .tags(.planting)
    • 20:37 - Slow Asset Loading

      for asset in allAssets {
          asset.load()
      }
    • 20:54 - Fast Asset Loading

      await withDiscardingTaskGroup { group in
          for asset in allAssets {
              group.addTask {
                  asset.load()
              }
          }
      }

Developer Footer

  • Vidéos
  • WWDC24
  • What’s new in Xcode 16
  • 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