Swift/Type/Bool

From Azupedia
Jump to navigation Jump to search
Bool
Typestructure
iOS8.0+
iPadOS8.0+
macOS10.10+
MacCatalyst13.0+
tvOS9.0+
watchOS2.0+
Websitedeveloper.apple.com/documentation/swift/bool/

true or false が設定可能な型。

Method

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