BooleanLiteralConvertible

protocol BooleanLiteralConvertible

Conforming types can be initialized with the boolean literals true and false.

Inheritance View Protocol Hierarchy →
Associated Types
BooleanLiteralType
Import import Swift

Initializers

init(booleanLiteral:) Required

Create an instance initialized to value.

Declaration

init(booleanLiteral value: BooleanLiteralType)