We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f655d18 commit 255181fCopy full SHA for 255181f
firebaseai/FirebaseAIExample/Features/Live/Views/AudioOutputToggle.swift
@@ -16,12 +16,12 @@ import SwiftUI
16
17
struct AudioOutputToggle: View {
18
@Binding var isEnabled: Bool
19
- var onChange: (Bool) -> Void = { _ in }
+ var onChange: () -> Void = {}
20
21
var body: some View {
22
VStack(alignment: .leading, spacing: 5) {
23
- Toggle("Audio Output", isOn: $isEnabled).onChange(of: isEnabled) { _, new in
24
- onChange(new)
+ Toggle("Audio Output", isOn: $isEnabled).onChange(of: isEnabled) { _, _ in
+ onChange()
25
}
26
27
Text("""
0 commit comments