Bool
struct Bool
-
Mechanica
Returns 1 if true, or 0 if false.
Declaration
Swift
public var int: Int
-
Mechanica
Returns
true
if true, orfalse
if false.Declaration
Swift
public var string: String
-
Mechanica
Returns a
new
Bool with the inverted value ofself
.Declaration
Swift
public var toggled: Bool
-
Mechanica
Inverts the value of
self
.Declaration
Swift
public mutating func toggle()
-
Mechanica
Returns
true
orfalse
randomly.Declaration
Swift
static public func random() -> Bool
-
Mechanica
Creates a string representing the given value in the binary base.
true.binaryString //"1"
Declaration
Swift
public var binaryString: String