SwiftVersion

public struct SwiftVersion

Represents the Swift language version.

  • Undocumented

    Declaration

    Swift

    public let major: Int
  • Undocumented

    Declaration

    Swift

    public let minor: Int
  • Undocumented

    Declaration

    Swift

    public let patch: Int
  • Undocumented

    Declaration

    Swift

    public static let v2_2 = SwiftVersion(major: 2, minor: 2, patch: 0)
  • Undocumented

    Declaration

    Swift

    public static let v2_3 = SwiftVersion(major: 2, minor: 3, patch: 0)
  • Undocumented

    Declaration

    Swift

    public static let v3_0 = SwiftVersion(major: 3, minor: 0, patch: 0)
  • Undocumented

    Declaration

    Swift

    public static let v3_0_1 = SwiftVersion(major: 3, minor: 0, patch: 1)
  • Undocumented

    Declaration

    Swift

    public static let v3_1 = SwiftVersion(major: 3, minor: 1, patch: 0)
  • Undocumented

    Declaration

    Swift

    public static let v4_0 = SwiftVersion(major: 4, minor: 0, patch: 0)
  • Undocumented

    Declaration

    Swift

    public static let v4_1 = SwiftVersion(major: 4, minor: 1, patch: 0)
  • Undocumented

    Declaration

    Swift

    public static let v5_0 = SwiftVersion(major: 5, minor: 0, patch: 0)
  • all

    Undocumented

    Declaration

    Swift

    public static let all: [SwiftVersion] = [
  • Declaration

    Swift

    public var description: String
  • Declaration

    Swift

    public static func ==(lhs: SwiftVersion, rhs: SwiftVersion) -> Bool
  • Declaration

    Swift

    public static func < (lhs: SwiftVersion, rhs: SwiftVersion) -> Bool
  • Declaration

    Swift

    public var hashValue: Int