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 UIKit

    Discover the latest updates and improvements to UIKit and learn how to build better iPadOS, iOS, and Mac Catalyst apps. We'll take you through UI refinements, productivity updates, API enhancements, and more. We'll also help you explore improvements to performance, security, and privacy.

    Ressources

    • UINavigationItem.ItemStyle
    • UIPageControl
    • UICalendarView
    • centerItemGroups
    • Building a desktop-class iPad app
      • Vidéo HD
      • Vidéo SD

    Vidéos connexes

    WWDC22

    • Adopt desktop-class editing interactions
    • Adopt Variable Color in SF Symbols
    • Build a desktop-class iPad app
    • Eliminate data races using Swift Concurrency
    • Meet desktop-class iPad
    • Use SwiftUI with UIKit
    • Visualize and optimize Swift concurrency
    • What's new in SF Symbols 4
    • What's new in TextKit and text views

    WWDC21

    • Customize and resize sheets in UIKit
  • Rechercher dans cette vidéo…
    • 7:51 - Configuring a UICalendarView with multi-date selection

      // Configuring a calendar view with multi-date selection
      
      let calendarView = UICalendarView()
      calendarView.delegate = self
      calendarView.calendar = Calendar(identifier: .gregorian)
      view.addSubview(calendarView)
      
      let multiDateSelection = UICalendarSelectionMultiDate(delegate: self)
      multiDateSelection.selectedDates = myDatabase.selectedDates()
      calendarView.selectionBehavior = multiDateSelection
      
      func multiDateSelection(
          _ selection: UICalendarSelectionMultiDate,
          canSelectDate dateComponents: DateComponents
      ) -> Bool {
          return myDatabase.hasAvailabilities(for: dateComponents)
      }
    • 9:07 - Configure UICalendarView decorations.

      // Configuring Decorations
      func calendarView(
          _ calendarView: UICalendarView, 
          decorationFor dateComponents: DateComponents
      ) -> UICalendarView.Decoration? {
          switch myDatabase.eventType(on: dateComponents) {
          case .none:
              return nil
          case .busy:
              return .default()
          case .travel:
              return .image(airplaneImage, color: .systemOrange)
          case .party:
              return .customView {
                  MyPartyEmojiLabel()
              }
          }
      }
    • 10:16 - Setting up a vertical UIPageControl with custom indicators

      // Vertical page control with custom indicators
      
      pageControl.direction = .topToBottom
      pageControl.preferredIndicatorImage = UIImage(systemNamed: "square")
      pageControl.preferredCurrentIndicatorImage = UIImage(systemNamed: "square.fill")
    • 12:21 - Creating a custom sheet detent

      // Create a custom detent
      sheet.detents = [
          .large(),
          .custom { _ in
              200.0
          }
      ]
    • 12:38 - Creating a custom sheet detent using a percentage of maximum detent height

      // Create a custom detent
      sheet.detents = [
          .large(),
          .custom { context in
              0.3 * context.maximumDetentValue
          }
      ]
    • 12:42 - Assigning identifiers to custom sheet detents

      // Define a custom identifier
      extension UISheetPresentationController.Detent.Identifier {
          static let small = UISheetPresentationController.Detent.Identifier("small")
      }
      
      // Assign identifier to custom detent
      sheet.detents = [
          .large(),
          .custom (identifier: .small) { context in
              0.3 * context.maximumDetentValue
          }
      ]
      
      // Disable dimming above the custom detent
      sheet.largestUndimmedDetentIdentifier = .small
    • 22:16 - UIHostingConfiguration example

      cell.contentConfiguration = UIHostingConfiguration {
          VStack {
              Image(systemName: "wand.and.stars")
                  .font(.title)
              Text("Like magic!")
                  .font(.title2).bold()
          }
          .foregroundStyle(Color.purple)
      }

Developer Footer

  • Vidéos
  • WWDC22
  • What's new in UIKit
  • 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