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
  • SF Symbols in SwiftUI

    Discover how you can incorporate SF Symbols into your SwiftUI app. We'll explore basic techniques for presenting symbols, customizing their size, and showing different variants. We'll also take you through the latest updates to symbol colorization and help you pick the right tool for your app's needs.

    Ressources

    • Download SF Symbols
    • Human Interface Guidelines: SF Symbols
      • Vidéo HD
      • Vidéo SD

    Vidéos connexes

    WWDC21

    • Create custom symbols
    • Explore the SF Symbols 3 app
    • SF Symbols in UIKit and AppKit
    • What's new in AppKit
    • What's new in SwiftUI
    • What’s new in SF Symbols
  • Rechercher dans cette vidéo…
    • 0:45 - Creating Symbols

      // System symbol image
      Image(systemName: "heart")
      
      // System symbol label
      Label("Heart", systemImage: "heart")
      
      // Custom symbol image
      Image("queen.heart")
      
      // Custom symbol label
      Label("Queen of Hearts", image: "queen.heart")
    • 2:33 - Accessibility Label

      Image(systemName: "heart")
          .accessibilityLabel("Ace of Hearts")
      
      Image(systemName: "person.circle")
          .accessibilityLabel("Profile")
      
      Image("queen.heart")
      
      // Localizeable.strings
      "queen.heart" = "Queen of Hearts";
    • 2:59 - Symbol in Text

      Text("""
          Thalia, Paul, and
          3 others \(Image(systemName: "chevron.forward"))
      """)
    • 3:14 - Customizing Color

      Label("Heart", systemImage: "heart")
      
      Label("Heart", systemImage: "heart")
          .foregroundStyle(.red)
      
      Label("Heart", systemImage: "heart")
          .foregroundStyle(.tint)
      
      Label("Heart", systemImage: "heart")
          .foregroundStyle(.secondary)
    • 3:51 - Customizing Font

      Label("Heart", systemImage: "heart")
          .font(.body)
      
      Label("Heart", systemImage: "heart")
          .font(.caption)
      
      Label("Heart", systemImage: "heart")
          .font(.system(size: 10))
    • 4:08 - Customizing Scale

      Label("Heart", systemImage: "heart")
          .imageScale(.large)
      
      Label("Heart", systemImage: "heart")
          .imageScale(.medium)
      
      Label("Heart", systemImage: "heart")
          .imageScale(.small)
    • 4:23 - Customizing Variants

      TabView {
          Text("Cards").tabItem {
              Label("Cards", systemImage: "rectangle.portrait.on.rectangle.portrait")
          }
          Text("Rules").tabItem {
              Label("Rules", systemImage: "character.book.closed")
          }
          Text("Profile").tabItem {
              Label("Profile", systemImage: "person.circle")
          }
          Text("Magic").tabItem {
              Label("Magic", systemImage: "sparkles")
          }
      }
    • 5:12 - Monochrome

      List {
          Label("Ace of Hearts", systemImage: "suit.heart")
          Label("Ace of Spades", systemImage: "suit.spade")
          Label("Ace of Diamonds", systemImage: "suit.diamond")
          Label("Ace of Clubs", systemImage: "suit.club")
          Label("Queen of Hearts", image: "queen.heart")
      }
      .symbolVariant(.fill)
    • 6:41 - Multicolor

      List {
          Label("Ace of Hearts", systemImage: "suit.heart")
          Label("Ace of Spades", systemImage: "suit.spade")
          Label("Ace of Diamonds", systemImage: "suit.diamond")
          Label("Ace of Clubs", systemImage: "suit.club")
          Label("Queen of Hearts", image: "queen.heart")
      }
      .symbolVariant(.fill)
      .symbolRenderingMode(.multicolor)
    • 7:10 - Hierarchical Rendering Mode

      HStack {
          Button(action: {}) {
              Image(systemName: "square.3.stack.3d.top.fill")
          }
          Button(action: {}) {
              Image(systemName: "square.3.stack.3d.bottom.fill")
          }
      }
      .symbolRenderingMode(.hierarchical)
    • 7:50 - Palette Rendering Mode

      Button(action: {}) {
          Image(systemName: "arrow.uturn.backward")
      }
      .symbolVariant(.circle.fill)
      .foregroundStyle(.white, .yellow, .red)
    • 9:00 - Advanced Foreground Styles

      Button(action: {}) {
          Image(systemName: "arrow.uturn.backward")
      }
      .symbolVariant(.circle.fill)
      .foregroundStyle(.white, .red)
      
      Button(action: {}) {
          Image(systemName: "arrow.uturn.backward")
      }
      .symbolVariant(.circle.fill)
      .foregroundStyle(.white, .secondary)
      
      Button(action: {}) {
          Image(systemName: "arrow.uturn.backward")
      }
      .symbolVariant(.circle.fill)
      .foregroundStyle(.red, .regularMaterial)

Developer Footer

  • Vidéos
  • WWDC21
  • SF Symbols in SwiftUI
  • 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