true or false が設定可能な型。

Bool
Typestructure
iOS8.0+
iPadOS8.0+
macOS10.10+
MacCatalyst13.0+
tvOS9.0+
watchOS2.0+
Websitedeveloper.apple.com/documentation/swift/bool/

Method

.toggle()
true と false を反転させる。
.random()
true と falseをランダムで返す。