For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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:

Component
What it shows

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

Feature
Single-Frame Mode
Multi-Frame Mode

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

  1. Configure credentials and codes in SDKConfig.swift

  2. Run the demo; LandingView initializes and authenticates the SDK automatically

  3. For localization: select a mode (Single-Frame or Multi-Frame) and tap Start Localization

  4. For object tracking: tap Start Object Tracking

  5. For map creation: use the Mapping card

  6. The respective AR view opens and begins automatically

See MultiSetConfig for all configuration options.

Last updated

Was this helpful?