> For the complete documentation index, see [llms.txt](https://docs.multiset.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.multiset.ai/native-sdk/ios-swift-native/sample-views.md).

# Sample Views

The SwiftUI sample views shipped with the iOS SDK, with a comparison of the localization modes.

This section provides detailed documentation for the sample views included in the MultiSet iOS SDK. These SwiftUI views demonstrate how to implement VPS localization and object tracking in your iOS application.

## Available Views

### [LandingView](/native-sdk/ios-swift-native/sample-views/landingview.md)

The entry point for the SDK demo application. Handles SDK initialization, authentication, mode selection, and navigation to either the AR localization view or the object tracking view.

### [ARLocalizationView](/native-sdk/ios-swift-native/sample-views/arlocalizationview.md)

Provides AR-based localization using either single-frame or multi-frame capture. Supports automatic localization, background localization, relocalization, GPS hints, and mesh visualization.

### [ARObjectTrackingView](/native-sdk/ios-swift-native/sample-views/arobjecttrackingview.md)

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.

## 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              |
| Movement during capture | Not required       | Recommended         |
| Best for                | Quick localization | Precise positioning |

## Getting Started

1. Configure credentials and codes in `SDKConfig.swift`
2. Initialize the SDK in `LandingView` (tap **Authenticate**)
3. For localization: select a mode (Single-Frame or Multi-Frame) and tap **Start Localization**
4. For object tracking: tap **Start Object Tracking**
5. The respective AR view opens and begins automatically

See [MultiSetConfig](/native-sdk/ios-swift-native/api-reference/multisetconfig.md) for all configuration options.

## Related

* [API Reference](/native-sdk/ios-swift-native/api-reference.md)
* [iOS SDK Overview](/native-sdk/ios-swift-native.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.multiset.ai/native-sdk/ios-swift-native/sample-views.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
