Skip to content

Instantly share code, notes, and snippets.

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