UInt

public extension UInt
  • Returns self as Int if possible

    Declaration

    Swift

    var asInt: Int? { get }
  • Returns self as CGFloat

    Declaration

    Swift

    var asCGFloat: CGFloat { get }
  • Returns self as Double

    Declaration

    Swift

    var asDouble: Double { get }
  • Returns self as Float

    Declaration

    Swift

    var asFloat: Float { get }
  • Returns self as String

    Declaration

    Swift

    var asString: String { get }
  • Returns self as HEX String in a format like 0xAABB11

    Declaration

    Swift

    var asHexString: String { get }
  • Returns self as TimeInterval

    Declaration

    Swift

    var asTimeInterval: TimeInterval { get }