Skip to content

Commit 253df30

Browse files
authored
Add minNum/maxNum to slider labels in RandomNumberGeneratorApp example (#131)
1 parent d5d26d6 commit 253df30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/Sources/RandomNumberGeneratorExample/RandomNumberGeneratorApp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct RandomNumberGeneratorApp: App {
3939
randomNumber = Int.random(in: Int(minNum)...Int(maxNum))
4040
}
4141

42-
Text("Minimum:")
42+
Text("Minimum: \(minNum)")
4343
Slider(
4444
$minNum.onChange { newValue in
4545
if newValue > maxNum {
@@ -50,7 +50,7 @@ struct RandomNumberGeneratorApp: App {
5050
maximum: 100
5151
)
5252

53-
Text("Maximum:")
53+
Text("Maximum: \(maxNum)")
5454
Slider(
5555
$maxNum.onChange { newValue in
5656
if newValue < minNum {

0 commit comments

Comments
 (0)