Core Concepts
Understanding these core concepts will help you build better spatial computing applications with Aug.
Augmented Space
AugmentedSpace is the container for all spatial content in Aug:
swift
1AugmentedSpace {
2 // Your spatial content here
3}Spatial Views
Spatial views are the building blocks of your 3D interface:
swift
1SpatialView {
2 Model3D(named: "robot")
3 Text3D("Hello, World!")
4}
5.frame(depth: 300)
6.offset(z: -500)Intelligence Modifiers
Aug Intelligence adds AI-powered capabilities to your views:
swift
1Model3D(named: "object")
2 .augIntelligence(.environmentAware) // Understands surroundings
3 .augIntelligence(.objectRecognition) // Recognizes objects
4 .augIntelligence(.semanticUnderstanding) // Understands contextSpatial Gestures
Handle user interactions with spatial gestures:
swift
1Model3D(named: "object")
2 .gesture(.spatialTap) { location in
3 print("Tapped at \(location)")
4 }
5 .gesture(.spatialDrag) { translation in
6 print("Dragged by \(translation)")
7 }