Augmenos
Code

An educational app that showcases some of visionOS capabilities with open source code. Intended for developers learning visionOS. Download on the App Store or Xcode project on GitHub.

Code Highlighting
RealityView 
{ 
    content in
    if let scene = try? await Entity(named: "Heart Model", in: realityKitContentBundle) {
        content.add(scene)
    }
} update: { content in
    if let scene = content.entities.first {
        let uniformScale: Float = enlarge ? 2.0 : 1.0
        scene.transform.scale = [uniformScale, uniformScale, uniformScale]
    }
}
.gesture(TapGesture().targetedToAnyEntity().onEnded { _ in // Be sure to add CollisionComponent.
    enlarge.toggle()
})