Simulator setup
How to set up the simulator
1. Import and initialize the simulator package.
import ViveGlassSimulator
let simulator = GlassConnectSimulator(delegate: self)
2. Set the ViveGlass object adapter to the simulator object.
ViveGlass.shared.setAdapter(simulator)
3. Show the simulator UI.
Task { @MainActor inawait simulator.showSimulatorUI(from: presentingVC)}
4. Replace the simulator resources.
You can put your own media files into the app's root folder using the following names:
- custom_audio.aac (AAC format, 44.1 kHz, 32 kbps, Stereo)
- custom_photo.heic (HEIC format, 1440×1920 resolution)
- custom_video.mp4 (video [480×856, 30 FPS] with AAC audio [44.1 kHz, 32 kbps, Stereo])