@@ -5,63 +5,47 @@ struct App: View {
55 var body : some View {
66 NavigationView {
77 List {
8- Section ( " Components " ) {
9- NavigationLinkWithTitle ( " Button " ) {
10- ButtonPreview ( )
11- }
12- NavigationLinkWithTitle ( " Card " ) {
13- CardPreview ( )
14- }
15- NavigationLinkWithTitle ( " Checkbox " ) {
16- CheckboxPreview ( )
17- }
18- NavigationLinkWithTitle ( " Countdown " ) {
19- CountdownPreview ( )
20- }
21- NavigationLinkWithTitle ( " Divider " ) {
22- DividerPreview ( )
23- }
24- NavigationLinkWithTitle ( " Input Field " ) {
25- InputFieldPreview ( )
26- }
27- NavigationLinkWithTitle ( " Loading " ) {
28- LoadingPreview ( )
29- }
30- NavigationLinkWithTitle ( " Radio Group " ) {
31- RadioGroupPreview ( )
32- }
33- NavigationLinkWithTitle ( " Segmented Control " ) {
34- SegmentedControlPreview ( )
35- }
36- NavigationLinkWithTitle ( " Text Field " ) {
37- TextInputPreviewPreview ( )
38- }
8+ NavigationLinkWithTitle ( " Alert " ) {
9+ AlertPreview ( )
3910 }
40-
41- Section ( " Modals " ) {
42- NavigationLinkWithTitle ( " Alert " ) {
43- AlertPreview ( )
44- }
45- NavigationLinkWithTitle ( " Bottom Modal " ) {
46- BottomModalPreview ( )
47- }
48- NavigationLinkWithTitle ( " Center Modal " ) {
49- CenterModalPreview ( )
50- }
11+ NavigationLinkWithTitle ( " Button " ) {
12+ ButtonPreview ( )
5113 }
52-
53- Section ( " Login Demo " ) {
54- NavigationLinkWithTitle ( " SwiftUI " ) {
55- SwiftUILogin ( )
56- }
57- NavigationLinkWithTitle ( " UIKit " ) {
58- UIViewControllerRepresenting {
59- UIKitLogin ( )
60- }
61- }
14+ NavigationLinkWithTitle ( " Card " ) {
15+ CardPreview ( )
16+ }
17+ NavigationLinkWithTitle ( " Checkbox " ) {
18+ CheckboxPreview ( )
19+ }
20+ NavigationLinkWithTitle ( " Countdown " ) {
21+ CountdownPreview ( )
22+ }
23+ NavigationLinkWithTitle ( " Divider " ) {
24+ DividerPreview ( )
25+ }
26+ NavigationLinkWithTitle ( " Input Field " ) {
27+ InputFieldPreview ( )
28+ }
29+ NavigationLinkWithTitle ( " Loading " ) {
30+ LoadingPreview ( )
31+ }
32+ NavigationLinkWithTitle ( " Modal (Bottom) " ) {
33+ BottomModalPreview ( )
34+ }
35+ NavigationLinkWithTitle ( " Modal (Center) " ) {
36+ CenterModalPreview ( )
37+ }
38+ NavigationLinkWithTitle ( " Radio Group " ) {
39+ RadioGroupPreview ( )
40+ }
41+ NavigationLinkWithTitle ( " Segmented Control " ) {
42+ SegmentedControlPreview ( )
43+ }
44+ NavigationLinkWithTitle ( " Text Input " ) {
45+ TextInputPreviewPreview ( )
6246 }
6347 }
64- . navigationTitle ( " Examples " )
48+ . navigationTitle ( " Components " )
6549 . navigationBarTitleDisplayMode ( . inline)
6650 }
6751 }
0 commit comments