Post

Replies

Boosts

Views

Activity

Reply to Why is VisionOS Barcode Scanning an Enterprise API?
Did anybody actually managed to add the required entitlement in Xcode? It's always erroring for me when trying to add com.apple.developer.arkit.barcode-detection.allow required in order to receive updates from BarcodeDetectionProvider. I'm on Xcode 16 beta 3 (released yesterday), using automatic signing. It always fails with error Automatic signing failed Xcode failed to provision this target. Please file a bug report at... When I check the provisioning profile guts (in ~/Library/Developer/Xcode/UserData/Provisioning Profiles directory) it doesn't include that entitlement. It only complains when adding this specific entitlement, not others non-beta capabilities.
Jul ’24
Reply to Walking an entity around an immersive space in visionOS like the window drag bar
Hi @kallipigous, I'm trying to achieve the same thing and I think I'm quite close but not there yet. Basically when the drag gesture starts I use worldTrackingProvider.queryDeviceAnchor(atTimestamp: CACurrentMediaTime())?.originFromAnchorTransform to get the initial position of the device. Then at every gesture update I retrieve the same value, which I use to determine the device offset as let deviceAnchorOffset = deviceAnchorCurrentPosition - deviceAnchorStartPosition. If I understand correctly, what you are saying is that when deviceAnchorOffset goes above a certain threshold, instead of applying the offset that comes from DragGesture (which has a build-in multiplying factor that can't be controller), you apply the offset from the world space origin - which sounds the same as deviceAnchorOffset. Does this match your approach? However I think this also assume your harm is stationary and just moving together in sync with your body, isn't it? Otherwise the object would still appear as slipping from your hands.
Jul ’24