API Reference

Complete reference for all Aug APIs.

AugmentedSpace

The main container for spatial content.

swift
1struct AugmentedSpace<Content: View>: View {
2    init(@ViewBuilder content: () -> Content)
3}

Properties

  • `content` - The spatial views to display
  • Example

    swift
    1AugmentedSpace {
    2    SpatialView {
    3        Model3D(named: "scene")
    4    }
    5}

    SpatialView

    A view that renders in 3D space.

    swift
    1struct SpatialView<Content: View>: View {
    2    init(@ViewBuilder content: () -> Content)
    3}

    Modifiers

  • `.frame(width:height:depth:)` - Set the spatial dimensions
  • `.offset(x:y:z:)` - Position in 3D space
  • `.rotation3D(angle:axis:)` - Rotate the view
  • Model3D

    Loads and displays 3D models.

    swift
    1struct Model3D: View {
    2    init(named: String)
    3    init(url: URL)
    4}

    Supported Formats

  • USDZ
  • Reality
  • OBJ (with materials)
  • Aug | AI-Powered Spatial Computing for iOS & visionOS