Bool

public extension Bool
  • int

    SwifterSwift: Return 1 if true, or 0 if false.

       false.int -> 0
       true.int -> 1
    

    Declaration

    Swift

    var int: Int { get }
  • SwifterSwift: Return “true” if true, or “false” if false.

       false.string -> "false"
       true.string -> "true"
    

    Declaration

    Swift

    var string: String { get }