Unit

public enum Unit : UInt32, CaseIterable, Codable

Defines different units in which the size is described.

  • Size expressed in physical pixels on the device screen.

    Declaration

    Swift

    case pixels
  • Size expressed in device independent pixels, meaning that on devices with different display resolutions and sizes it will represent approximately the same physical (in millimeters, inches, etc.) size.

    Declaration

    Swift

    case densityIndependentPixels
  • Size expressed in meters, meaning it will stay constant relative to map content and change on the screen as the map is zoomed in and out.

    Declaration

    Swift

    case meters