Post

Replies

Boosts

Views

Activity

Reply to ARView for macOS?
You can create this in code instead of storyboard for sure, the only issue is macOS and iOS have different initialisers for ARView. When doing this previously, I just used an #if os(macOS) or similar to determine which one I'm using, and I get the exact same scene displayed on iOS and macOS.
Nov ’20
Reply to SwiftUI + RealityKit + ARSessionDelegate
I believe that what you want to try is when the anchor state changes on your AnchorEntity. For that you can subscribe to SceneEvents.AnchoredStateChanged - https://developer.apple.com/documentation/realitykit/sceneevents/anchoredstatechanged. an example of that might look like: var eventSub: Cancellable? eventSub = self.scene.subscribe( 	to: SceneEvents.AnchoredStateChanged.self, 	on: target ) { event in 	if event.isAnchored { 		// image found 	} } You must import the framework Combine to use Cancellable.
Jul ’20
Reply to Network privacy permission check
It seems absolutely necessary to have a check like this for creating an MCNearbyServiceAdvertiser & Browser. I hope it’s added otherwise this could affect users’ in app experiences really negatively if we can’t check before creating these experiences, especially if it’s being created within an AR scene for example.
Jul ’20