Skip to content

Commit d53eef5

Browse files
committed
added paddings picker into preview
1 parent 47c99d4 commit d53eef5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages/BadgePreview.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ struct BadgePreview: View {
3232
Text("Filled").tag(BadgeVM.Style.filled)
3333
Text("Light").tag(BadgeVM.Style.light)
3434
}
35+
Picker("Paddings", selection: self.$model.paddings) {
36+
Text("8px; 6px")
37+
.tag(Paddings(top: 6, leading: 8, bottom: 6, trailing: 8))
38+
Text("10px; 8px")
39+
.tag(Paddings(top: 8, leading: 10, bottom: 8, trailing: 10))
40+
Text("12px; 10px")
41+
.tag(Paddings(top: 10, leading: 12, bottom: 10, trailing: 12))
42+
}
3543
}
3644
}
3745
}

0 commit comments

Comments
 (0)