TurbulenceSeverity

public enum TurbulenceSeverity : Int, Equatable, Comparable, Codable, CaseIterable

A severity level of a turbulence report.

It can vary for different aircraft types.

  • Smooth. The device didn’t experience any turbulence.

    Declaration

    Swift

    case none = 0
  • Light turbulence.

    Declaration

    Swift

    case light = 1
  • Light-Moderate turbulence.

    Declaration

    Swift

    case lightModerate = 2
  • Moderate turbulence.

    Declaration

    Swift

    case moderate = 3
  • Moderate-Occasionally Severe turbulence.

    Declaration

    Swift

    case moderateSevere = 4
  • Create from a supported raw value.

    Can be used when having a report from a GeoJSON string tapping on the map, etc.

    Declaration

    Swift

    public init?(rawValue: Int)

Color

  • The default severity color.

    Declaration

    Swift

    public var color: UIColor { get }
  • The border color.

    Declaration

    Swift

    public var borderColor: UIColor { get }
  • The default color opacity of the level.

    Declaration

    Swift

    public var colorOpacity: CGFloat { get }
  • The default severity color with applied opacity.

    Declaration

    Swift

    public var colorWithOpacity: UIColor { get }