Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mhijack/f1b13a33a51bd31284e5f1e1b75f85f8 to your computer and use it in GitHub Desktop.
Save mhijack/f1b13a33a51bd31284e5f1e1b75f85f8 to your computer and use it in GitHub Desktop.
struct ContentView: View {
@State var isReduceLoudnessOn = false
var body: some View {
MarshallSpeaker(maximumVolume: isReduceLoudnessOn ? 70 : 100)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment