Swift/Type/Bool

From Azupedia
Revision as of 14:28, 18 November 2022 by imported>Fire (Created page with "{{Infobox Swift |name=Bool |Type=structure |iOS=8.0 |iPadOS=8.0 |macOS=10.10 |MacCatalyst=13.0 |tvOS=9.0 |watchOS=2.0 |Website={{URL|https://developer.apple.com/documentation/swift/bool/}} }} true or false が設定可能な型。 == Method == ;.toggle() :true と false を反転させる。 ;.random() :true と falseをランダムで返す。 Bool")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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をランダムで返す。