Sample Views
The SwiftUI sample views shipped with the iOS SDK, with a comparison of the localization modes, the shared run UI and the map creation screens.
This section provides detailed documentation for the sample views included in the MultiSet iOS SDK. These SwiftUI views demonstrate how to implement VPS localization, object tracking and map creation in your iOS application.
Available Views
LandingView
The entry point for the SDK demo application. Handles SDK initialization, authentication, mode selection, and navigation to the AR localization view, the object tracking view and the map creation screens.
ARLocalizationView
Provides AR-based localization using either single-frame or multi-frame capture. Supports automatic localization, background localization, recovery after a tracking break, GPS hints, and mesh visualization.
ARObjectTrackingView
Provides AR-based object tracking. Detects and locates specific tracked objects (by object code) using the AR camera and places animated outline meshes over them in the real world.
Map creation screens
Scan a space with LiDAR or Non-LiDAR, save it as a draft and upload it, built on MultiSet.shared.mapping.
Shared Run UI
Both AR views show each run the same way, using components from MultiSet-iOS-SDK/Views/Components/ driven by the SDK's run stages:
FrameCaptureOverlay
Covers the scene while a run the user is waiting on captures frames
RunStatusCard
A small card at the top left for every run, background ones included: capturing, uploading, waiting on the server, then a tick or a red mark
MeshLoadingBar
A bar at the bottom left while a map or object mesh loads
MeshVisibilityToggle
Shows or hides the mesh once it is in the scene
After a tracking break or a return from the background, the map mesh and object outlines stay hidden until the SDK has re-localized or re-tracked.
Localization Mode Comparison
Frames captured
1
4–6 (configurable)
Capture time
Instant
~2–3 seconds
Accuracy
Good
Better
Network usage
Lower
Higher
Query mode
VPS-1 or VPS-2
VPS-1 or VPS-2
Movement during capture
Not required
Recommended
Best for
Quick localization
Precise positioning
Getting Started
Configure credentials and codes in
SDKConfig.swiftRun the demo;
LandingViewinitializes and authenticates the SDK automaticallyFor localization: select a mode (Single-Frame or Multi-Frame) and tap Start Localization
For object tracking: tap Start Object Tracking
For map creation: use the Mapping card
The respective AR view opens and begins automatically
See MultiSetConfig for all configuration options.
Related
Last updated
Was this helpful?

