Created
June 13, 2021 21:20
-
-
Save mhijack/a0622ba05e9f7300fec2389aee699ade to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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