-
-
Save sturdysturge/938f315c2eac40b697e7fa6a0886bace 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 FontSizeStepper: View { | |
@Binding var fontSize: CGFloat | |
var body: some View { | |
Stepper(value: $fontSize, in: 1...100) { | |
Text("Font size: \(String(format: "%.f", fontSize))") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment