Initializer

init(_:)

Creates a new Boolean value from the given string.

Declaration

init?(_ description: String)

Parameters

description

A string representation of the Boolean value.

Discussion

If the description value is any string other than "true" or "false", the result is nil. This initializer is case sensitive.

Relationships

See Also

Creating a Boolean From Another Value

init(Bool)

Creates an instance equal to the given Boolean value.