Simulator setup
Setup simulator
- Import simulator package and init it
import ViveGlassSimulator
let simulator = GlassConnectSimulator(delegate: self)
- Set ViveGlass object adapter to simulator object
ViveGlass.shared.setAdapter(simulator)
- Show simulator UI
Task { @MainActor inawait simulator.showSimulatorUI(from: presentingVC)}
-
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, 1440x1920 resolution)
- custom_video.mp4 (video (480x856, 30 FPS) with AAC audio (44.1 kHz, 32 kbps, Stereo))
-
You can put your own media files into the
app's root folder
using the following names: