Skip to content

Commit a88172e

Browse files
committed
.onReceive code style fix
1 parent 8a36501 commit a88172e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages/ProgressBarPreview.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ struct ProgressBarPreview: View {
2929
}
3030
.onReceive(self.timer) { _ in
3131
if self.currentValue < self.model.maxValue {
32-
self.currentValue += 1
32+
self.currentValue += (self.model.maxValue - self.model.minValue) / 100
3333
} else {
34-
self.currentValue = 0
34+
self.currentValue = self.model.minValue
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)