Skip to content

Glossary: SwiftUI

.toggle()

Also written: toggle

A method that flips a Bool: false becomes true and true becomes false.

Where the book teaches it

Related terms

withAnimation