-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButtonStyles.swift
46 lines (33 loc) · 911 Bytes
/
ButtonStyles.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import SwiftUI
struct ButtonStyles: View {
var body: some View {
Button("Mini Borderless") {
}
.frame(height: 55)
.controlSize(.mini)
.buttonStyle(.borderless)
Button("Small Bordered") {
}
.frame(height: 55)
.controlSize(.small)
.buttonStyle(.bordered)
Button("Regular Plain") {
}
.frame(height: 55)
.controlSize(.regular)
.buttonStyle(.plain)
Button("Large Automatic") {
}
.frame(height: 55)
.controlSize(.large)
.buttonStyle(.automatic)
Button("Extra Large Bordered Prominent") {
}
.frame(height: 55)
.controlSize(.extraLarge)
.buttonStyle(.borderedProminent)
}
}
#Preview {
ButtonStyles()
}