Detects changes to the SwiftUI toggle and executes a print statement.
Reference: How can I trigger an action when a swiftUI toggle() is toggled?
Detects changes to the SwiftUI toggle and executes a print statement.
Reference: How can I trigger an action when a swiftUI toggle() is toggled?