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
  • Swan's Quest, Chapter 1: Voices in the dark

    Swift Playgrounds presents "Swan's Quest,” an interactive adventure in four chapters for all ages. In this chapter, our Hero must navigate a dark cave — and the only way to light the torches is to make them accessible.

    Learn about VoiceOver and write interesting audio descriptions. You just might help our Hero find their way out… and get a clue for the next challenge.

    Swan's Quest was created for Swift Playgrounds on iPad and Mac, combining frameworks and resources which power the educational experiences in many of our playgrounds, including Sonic Workshop, Sensor Arcade, and Augmented Reality. To learn more about building your own playgrounds, be sure to watch "Create Swift Playgrounds content for iPad and Mac".

    And don't forget to stop by the Developer Forums and let us know what you thought of Swan's Quest.

    Recursos

    • Quest Create playground book
    • Swan's Quest: Voices in the dark playground book
      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC20

    • Build a SwiftUI view in Swift Playgrounds
    • Create Swift Playgrounds content for iPad and Mac
    • Swan's Quest, Chapter 2: A time for tones
    • Swan's Quest, Chapter 3: The notable scroll
    • Swan's Quest, Chapter 4: The sequence completes
  • Buscar neste vídeo...
    • 12:21 - Graphic.swift

      //  Graphic.swift
      
      open class BaseGraphic: InternalGraphic {
         
          public var accessibilityHints: AccessibilityHints?
      
          // ...
      }
    • 12:32 - AccessibilityHints.swift

      //  AccessibilityHints.swift
      
      public struct AccessibilityHints: Codable {
      
         /// Indicates a graphic should be treated as a UIAccessibilityElement by VoiceOver.
         public var makeAccessibilityElement: Bool = false
          
         /// Label spoken by VoiceOver for the accessible graphic (a localized character name).
         public var accessibilityLabel: String?
      
         // ... 
      
      }
    • 12:45 - Make an Accessible Graphic

      // Make an Accessible Graphic
      
      import SPCCore
      import SPCAccessibility
      
      let hints = AccessibilityHints(makeAccessibilityElement: true, 
                                     accessibilityLabel: "Activate button to start the party")
      
      let graphic = Graphic(name: "Let's get it Started")
      graphic.accessibilityHints = hints
    • 13:51 - Activating torch1 and torch2

      // activate torch1 and torch2
      
      cave.torch1.accessibilityHints = AccessibilityHints(makeAccessibilityElement: true, 
              accessibilityLabel: "Torch next to a stairwell, where dripping water can be heard.")
      cave.torch2.accessibilityHints = AccessibilityHints(makeAccessibilityElement: true, 
              accessibilityLabel: "Right before the edge of the platform—be careful!")

Developer Footer

  • Vídeos
  • WWDC20
  • Swan's Quest, Chapter 1: Voices in the dark
  • 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