Skip to content

Commit 8a36501

Browse files
committed
fix self
1 parent b6470ff commit 8a36501

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ struct ProgressBarPreview: View {
1212
var body: some View {
1313
VStack {
1414
PreviewWrapper(title: "SwiftUI") {
15-
SUProgressBar(currentValue: $currentValue, model: self.model)
15+
SUProgressBar(currentValue: self.$currentValue, model: self.model)
1616
}
1717
Form {
1818
ComponentColorPicker(selection: self.$model.color)
1919
CornerRadiusPicker(selection: self.$model.cornerRadius) {
2020
Text("Custom: 2px").tag(ComponentRadius.custom(2))
2121
}
2222
SizePicker(selection: self.$model.size)
23-
Picker("Style", selection: $model.style) {
23+
Picker("Style", selection: self.$model.style) {
2424
Text("Light").tag(ProgressBarVM.Style.light)
2525
Text("Filled").tag(ProgressBarVM.Style.filled)
2626
Text("Striped").tag(ProgressBarVM.Style.striped)
2727
}
2828
}
2929
}
30-
.onReceive(timer) { _ in
30+
.onReceive(self.timer) { _ in
3131
if self.currentValue < self.model.maxValue {
3232
self.currentValue += 1
3333
} else {

0 commit comments

Comments
 (0)