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
  • Explore ARKit 4

    ARKit 4 enables you to build the next generation of augmented reality apps to transform how people connect with the world around them. We'll walk you through the latest improvements to Apple's augmented reality platform, including how to use Location Anchors to connect virtual objects with a real-world longitude, latitude, and altitude. Discover how to harness the LiDAR Scanner on iPad Pro and obtain a depth map of your environment. And learn how to track faces in AR on more devices, including the iPad Air (3rd generation), iPad mini (5th generation), and all devices with the A12 Bionic chip or later that have a front-facing camera.

    To get the most out of this session, you should be familiar with how your apps can take advantage of LiDAR Scanner on iPad Pro. Watch “Advanced Scene Understanding in AR” for more information.

    Once you've learned how to leverage ARKit 4 in your iOS and iPadOS apps, explore realistic rendering improvements in “What's New in RealityKit” and other ARKit features like People Occlusion and Motion Capture with “Introducing ARKit 3”.

    Ressources

    • Displaying a point cloud using scene depth
    • Tracking geographic locations in AR
    • Creating a fog effect using scene depth
    • ARKit
      • Vidéo HD
      • Vidéo SD

    Vidéos connexes

    WWDC21

    • Explore ARKit 5

    WWDC20

    • Support performance-intensive apps and games
    • The artist’s AR toolkit
    • What's new in RealityKit

    WWDC19

    • Introducing ARKit 3
    • Introducing RealityKit and Reality Composer
  • Rechercher dans cette vidéo…
    • 6:58 - Availability

      // Check device support for geo-tracking
      guard ARGeoTrackingConfiguration.isSupported else {
          // Geo-tracking not supported on this device
          return
      }
      
      // Check current location is supported for geo-tracking
      ARGeoTrackingConfiguration.checkAvailability { (available, error) in
          guard available else {
              // Geo-tracking not supported at current location
              return
          }
          // Run ARSession
          let arView = ARView()
          arView.session.run(ARGeoTrackingConfiguration())
      }
    • 8:38 - Adding Location Anchors

      // Create coordinates
      let coordinate = CLLocationCoordinate2D(latitude: 37.795313, longitude: -122.393792)
      
      // Create Location Anchor
      let geoAnchor = ARGeoAnchor(name: "Ferry Building", coordinate: coordinate)
      
      // Add Location Anchor to session
      arView.session.add(anchor: geoAnchor)
      
      // Create a RealityKit anchor entity 
      let geoAnchorEntity = AnchorEntity(anchor: geoAnchor)
      
      // Anchor content under the RealityKit anchor
      geoAnchorEntity.addChild(generateSignEntity())
      
      // Add the RealityKit anchor to the scene
      arView.scene.addAnchor(geoAnchorEntity)
    • 10:32 - Positioning Content

      // Create a new entity for our virtual content
      let signEntity = generateSignEntity();
      
      // Add the virtual content entity to the Geo Anchor entity
      geoAnchorEntity.addChild(signEntity)
      
      // Rotate text to face the city
      let orientation = simd_quatf.init(angle: -Float.pi / 3.5, axis: SIMD3<Float>(0, 1, 0))
      signEntity.setOrientation(orientation, relativeTo: geoAnchorEntity)
      
      // Elevate text to 35 meters above ground level
      let position = SIMD3<Float>(0, 35, 0)
      signEntity.setPosition(position, relativeTo: geoAnchorEntity)
    • 14:08 - User Interactive Location Anchors

      let session = ARSession()
      let worldPosition = raycastLocationFromUserTap()
      session.getGeoLocation(forPoint: worldPosition) { (location, altitude, error) in
          if let error = error {
              ...
          }
          let geoAnchor = ARGeoAnchor(coordinate: location, altitude: altitude)
      }
    • 20:32 - Enabling the Depth API

      // Enabling the depth API
      
      let session = ARSession()
      let configuration = ARWorldTrackingConfiguration()
      
      // Check if configuration and device supports .sceneDepth
      if type(of: configuration).supportsFrameSemantics(.sceneDepth) {
          // Activate sceneDepth
          configuration.frameSemantics = .sceneDepth
      }
      session.run(configuration)
      
      ...
      
      // Accessing depth data
      func session(_ session: ARSession, didUpdate frame: ARFrame) {
          guard let depthData = frame.sceneDepth else { return }
          // Use depth data
      }
    • 21:12 - Depth API alongside person occlusion

      // Using the depth API alongside person occlusion
      
      let session = ARSession()
      let configuration = ARWorldTrackingConfiguration()
      
      // Set required frame semantics
      let semantics: ARConfiguration.FrameSemantics = .personSegmentationWithDepth
              
      // Check if configuration and device supports the required semantics
      if type(of: configuration).supportsFrameSemantics(semantics) {
          // Activate .personSegmentationWithDepth
          configuration.frameSemantics = semantics
      }
      session.run(configuration)
    • 25:41 - Raycasting

      let session = ARSession()
      hitTest(point, types: [.existingPlaneUsingGeometry,
                             .estimatedVerticalPlane,
                             .estimatedHorizontalPlane])
      
      let query = arView.makeRaycastQuery(from: point,
                                          allowing: .estimatedPlane,
                                          alignment: .any)
      
      let raycast = session.trackedRaycast(query) { results in
         // result updates
      }

Developer Footer

  • Vidéos
  • WWDC20
  • Explore ARKit 4
  • 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