ARKit Multipeer Connectivity in SwiftUI

An example of creating a collaborative session in SwiftUI, based on the sample code from Apple.

Key points

  • Using property wrappers from SwiftUI & Combine, View Model structure
  • Extend ARViewContainer for tap gesture
  • Using coordinator that conform to ARSessionDelegate to communicate changes from UIView(ARView) to SwiftUI

References

GitHub

View Github