visionOS UIKit API for setting Z offset?

Hey everybody!

Does anyone know if there's a UIKit API that's equivalent to SwiftUI's View/offset(z:)? https://developer.apple.com/documentation/swiftui/view/offset(z:)

I'd like to translate a UIView forward in space a little bit on visionOS. ❤️

Replies

Hi, although UIKit apps can get a little bit of depth when they are used in visionOS, you cannot add any more depth to your app programmatically unless you use SwiftUI.

  • Thank you @sha921

  • Maybe I could wrap the UIView in a UIViewRepresentable wrapped in a UIHostingController wrapped in a delicious tortilla.

Add a Comment