Bool

struct Bool
  • int

    Mechanica

    Returns 1 if true, or 0 if false.

    Declaration

    Swift

    public var int: Int { get }
  • Mechanica

    Returns a new Bool with the inverted value of self.

    Declaration

    Swift

    public var toggled: Bool { get }
  • Mechanica

    Creates a string representing the given value in the binary base.

    Example:

    true.binaryString -> "1"
    

    Declaration

    Swift

    public var binaryString: String { get }