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)

CaseIterable

  • All cases.

    Declaration

    Swift

    public static var allCases: [TurbulenceSeverity] { get }

Color

  • The SkyPath default severity color.

    Declaration

    Swift

    public var color: UIColor { get }
  • At the moment only none level has a border color because of white color. No opacity. Use colorWithOpacity when need a color with applied alpha.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var colorWithOpacity: UIColor { get }