Christopher Grey

13%
Flag icon
Starting with Swift 4.2, we can use the toggle() method like this: isItRaining.toggle()
Christopher Grey
Booleans can be toggled with a method.
Mastering Swift 5
Rate this book
Clear rating
Open Preview