SwiftUI components | Mobile SDK | 2GIS Documentation
iOS SDK

SwiftUI components

All SDK distributions include a standard set of UI elements for map control, which you can add to the hierarchy and use to manage map parameters.

The process of creating and adding Map is described in detail in the section Creating a Map.

The elements listed below are conveniently combined in IMapControlViewFactory.

The standard set includes:

  

  1. IndoorView for switching floors.
  2. TrafficView for managing traffic visibility on the map.
  3. ZoomView for zooming in and out.
  4. In development.
  5. CompassView for displaying the current map rotation angle relative to the north.
  6. CurrentLocationView for flying to the user's current location.
  7. In development.
  8. In development.