# NavvoMaps iOS examples

Two minimal, copy-paste-ready examples:

- `UIKitExample.swift` — a `UIViewController` that shows the map, adds a
  tappable marker, plans a route with `NavvoServices` and draws it.
- `SwiftUIExample.swift` — a SwiftUI screen with a two-way camera binding,
  marker list and a style picker.

## Run it

1. Create a new iOS app in Xcode (iOS 13+; the SwiftUI example uses an
   iOS 14+ modifier).
2. Add the package: **File → Add Package Dependencies…** and enter the
   NavvoMaps package URL (or add the local `ios/` folder of this repo).
3. Copy either example file into the app target.
4. Replace `nvvo_YOUR_KEY` with your API key from
   [navvo.io/developer](https://navvo.io/developer). The key needs the
   default scopes (`tiles`, `search`, `geocode`, `routing`, ...).
5. Build & run on a device or simulator.

No other setup is required — the map loads its style, tiles, sprites and
glyphs from Navvo automatically.
