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
 

Videos

Abrir menú Cerrar menú
  • Colecciones
  • Todos los videos
  • Información

Más videos

  • Información
  • Código
  • Meet desktop-class iPad

    Learn how you can bring desktop-class features to your iPad app. Explore updates to UINavigationBar that bring more discoverability and customizability to your app's features. Find out how the latest updates to UIKit can help make it easier and faster for people to explore content in your app. Lastly, we'll share a few updates on how it's easier than ever to bring your iPad app to the desktop with Mac Catalyst.

    Recursos

    • titleMenuProvider
    • UINavigationItem.ItemStyle
    • searchSuggestions
    • centerItemGroups
    • UINavigationItemRenameDelegate
    • UIDocumentProperties
    • Building a desktop-class iPad app
    • Supporting desktop-class features in your iPad app
      • Video HD
      • Video SD

    Videos relacionados

    WWDC23

    • Build better document-based apps

    WWDC22

    • Adopt desktop-class editing interactions
    • Bring your iOS app to the Mac
    • Build a desktop-class iPad app
    • What's new in UIKit
  • Buscar este video…
    • 4:27 - Creating a fixed UIBarButtonItemGroup from a single UIBarButtonItem

      let insertGroup = UIBarButtonItem(title: "Insert", image: UIImage(systemName: "photo"), primaryAction: UIAction { _ in }).creatingFixedGroup()
    • 4:55 - Convenient form

      // Creating the 'Draw' group
      
      // Convenient form of
      // UIBarButtonItemGroup.movableGroup(customizationIdentifier:representativeItem:items:)
      let drawGroup = UIBarButtonItem(title: "Draw", …)
          .creatingMovableGroup(customizationIdentifier: "Draw")
    • 5:30 - Creating an optional group with multiple UIBarButtonItems using UIBarButtonItemGroup

      let shapeGroup = UIBarButtonItemGroup.optionalGroup(
          customizationIdentifier: "Shapes",
          representativeItem: UIBarButtonItem(title: "Shapes", image: UIImage(systemName: "square.on.circle")),
          items: [
              UIBarButtonItem(title: "Square", image: UIImage(systemName: "square"), primaryAction: UIAction { _ in }),
              UIBarButtonItem(title: "Circle", image: UIImage(systemName: "circle"), primaryAction: UIAction { _ in }),
              UIBarButtonItem(title: "Rectangle", image: UIImage(systemName: "rectangle"), primaryAction: UIAction { _ in }),
              UIBarButtonItem(title: "Diamond", image: UIImage(systemName: "diamond"), primaryAction: UIAction { _ in }),
          ])
    • 6:56 - Setting up customizable centerItemGroups on a UINavigationItem

      navigationItem.customizationIdentifier = "com.jetpack.blueprints.maineditor"
      navigationItem.centerItemGroups = [
          // groups in the default customization
          UIBarButtonItem(title: "Insert", image: UIImage(systemName: "photo"), primaryAction: UIAction { _ in }).creatingFixedGroup(),
          UIBarButtonItem(title: "Draw", image: UIImage(systemName: "scribble"), primaryAction: UIAction { _ in }).creatingMovableGroup(customizationIdentifier: "Draw"),
          .optionalGroup(customizationIdentifier: "Shapes",
                         representativeItem: UIBarButtonItem(title: "Shapes", image: UIImage(systemName: "square.on.circle")),
                         items: [
                          UIBarButtonItem(title: "Square", image: UIImage(systemName: "square"), primaryAction: UIAction { _ in }),
                          UIBarButtonItem(title: "Circle", image: UIImage(systemName: "circle"), primaryAction: UIAction { _ in }),
                          UIBarButtonItem(title: "Rectangle", image: UIImage(systemName: "rectangle"), primaryAction: UIAction { _ in }),
                          UIBarButtonItem(title: "Diamond", image: UIImage(systemName: "diamond"), primaryAction: UIAction { _ in }),
                         ]),
          .optionalGroup(customizationIdentifier: "Text",
                         items: [
                          UIBarButtonItem(title: "Label", image: UIImage(systemName: "character.textbox"), primaryAction: UIAction { _ in }),
                          UIBarButtonItem(title: "Text", image: UIImage(systemName: "text.bubble"), primaryAction: UIAction { _ in }),
                         ]),
          
          // additional group not in the default customization
          .optionalGroup(customizationIdentifier: "Format",
                         isInDefaultCustomization: false,
                         representativeItem: UIBarButtonItem(title: "BIU", image: UIImage(systemName: "bold.italic.underline")),
                         items:[
                          UIBarButtonItem(title: "Bold", image: UIImage(systemName: "bold"), primaryAction: UIAction { _ in }),
                          UIBarButtonItem(title: "Italic", image: UIImage(systemName: "italic"), primaryAction: UIAction { _ in }),
                          UIBarButtonItem(title: "Underline", image: UIImage(systemName: "underline"), primaryAction: UIAction { _ in }),
                         ])
      ]
    • 9:30 - Adding a "Comments" item to the default title menu

      navigationItem.titleMenuProvider = { suggestedActions in
          var children = suggestedActions
          children += [
              UIAction(title: "Comments", image: UIImage(systemName: "text.bubble")) { _ in }
          ]
          return UIMenu(children: children)
      }
    • 10:15 - Supporting Drag & Drop and Sharing from the title menu

      let url = <#T##URL#>
      let documentProperties = UIDocumentProperties(url: url)
      
      if let itemProvider = NSItemProvider(contentsOf: url) {
          documentProperties.dragItemsProvider = { _ in
              [UIDragItem(itemProvider: itemProvider)]
          }
      
          documentProperties.activityViewControllerProvider = {
              UIActivityViewController(activityItems: [itemProvider], applicationActivities: nil)
          }
      }
      
      navigationItem.documentProperties = documentProperties
    • 12:45 - Implementing inline rename

      class ViewController: UIViewController {
          override func viewDidLoad() {
              super.viewDidLoad()
              navigationItem.renameDelegate = self
          }
      }
      
      extension ViewController: UINavigationItemRenameDelegate {
          func navigationItem(_ navigationItem: UINavigationItem, didEndRenamingWith title: String) {
              // Try renaming our document, the completion handler will have the updated URL or return an error.
              documentBrowserViewController.renameDocument(at: <#T##URL#>, proposedName: title, completionHandler: <#T##(URL?, Error?) -> Void#>)
          }
      }
    • 14:05 - Implementing Search Suggestions

      class ViewController: UIViewController {
          override func viewDidLoad() {
              super.viewDidLoad()
              searchController.searchResultsUpdater = self
          }
      }
      
      extension ViewController: UISearchResultsUpdating {
          func fetchQuerySuggestions(for searchController: UISearchController) -> [(String, UIImage?)] {
              let queryText = searchController.searchBar.text
              // Here you would decide how to transform the queryText into search results. This example just returns something fixed.
              return [("Sample Suggestion", UIImage(systemName: "rectangle.and.text.magnifyingglass"))]
          }
          
          func updateSearch(_ searchController: UISearchController, query: String) {
              // This method is used to update the search UI from our query text change
              // You should also update internal state related to when the query changes, as you might for when the user changes the query by typing.
              searchController.searchBar.text = query
          }
          
          func updateSearchResults(for searchController: UISearchController) {
              let querySuggestions = self.fetchQuerySuggestions(for: searchController)
              searchController.searchSuggestions = querySuggestions.map { name, icon in
                  UISearchSuggestionItem(localizedSuggestion: name, localizedDescription: nil, iconImage: icon)
              }
          }
      
          func updateSearchResults(for searchController: UISearchController, selecting searchSuggestion: UISearchSuggestion) {
              if let suggestion = searchSuggestion.localizedSuggestion {
                  updateSearch(searchController, query: suggestion)
              }
          }
      }

Developer Footer

  • Videos
  • WWDC22
  • Meet desktop-class iPad
  • 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