@@ -19,44 +19,48 @@ struct WelcomeOnboardingSheetView: View {
1919 }
2020
2121 var body : some View {
22- OnboardingSheetView {
23- Text ( " Welcome to \n OnboardingUI " )
24- . onboardingTextFormatting ( style: . title)
25- } content: {
26- OnboardingItem ( systemName: " applescript " , shape: . red) {
27- Text ( " Easy to Make " )
28- . onboardingTextFormatting ( style: . subtitle)
29- Text ( " Onboarding screens like Apple's stock apps can be easily created with SwiftUI. " )
30- . onboardingTextFormatting ( style: . content)
31- }
32-
33- OnboardingItem ( systemName: " apple.logo " ) {
34- Text ( " Not only for iPhone, but also for Mac, iPad, Vision Pro " )
35- . onboardingTextFormatting ( style: . subtitle)
36- Text ( " It supports not only iPhone, but also Mac, iPad, and Vision Pro. Therefore, there is no need to rewrite the code for each device. " )
37- . onboardingTextFormatting ( style: . content)
38- }
39-
40- OnboardingItem ( systemName: " circle.badge.checkmark " , mode: . palette, primary: . primary, secondary: . blue) {
41- Text ( " Customize SF Symbols " )
42- . onboardingTextFormatting ( style: . subtitle)
43- Text ( " When using a highly customizable implementation method, multi-color and SF symbol hierarchies are supported and can be freely customized. " )
44- . onboardingTextFormatting ( style: . content)
45- }
46-
22+ OnboardingSheetView {
23+ Text ( " Welcome to \n OnboardingUI " )
24+ . onboardingTextFormatting ( style: . title)
25+ } content: {
26+ OnboardingItem ( systemName: " applescript " , shape: . red) {
27+ Text ( " Easy to Make " )
28+ . onboardingTextFormatting ( style: . subtitle)
29+ Text ( " Onboarding screens like Apple's stock apps can be easily created with SwiftUI. " )
30+ . onboardingTextFormatting ( style: . content)
31+ }
32+
33+ OnboardingItem ( systemName: " apple.logo " ) {
34+ Text ( " Not only for iPhone, but also for Mac, iPad, Vision Pro " )
35+ . onboardingTextFormatting ( style: . subtitle)
36+ Text ( " It supports not only iPhone, but also Mac, iPad, and Vision Pro. Therefore, there is no need to rewrite the code for each device. " )
37+ . onboardingTextFormatting ( style: . content)
38+ }
39+
40+ OnboardingItem ( systemName: " circle.badge.checkmark " , mode: . palette, primary: . primary, secondary: . blue) {
41+ Text ( " Customize SF Symbols " )
42+ . onboardingTextFormatting ( style: . subtitle)
43+ Text ( " When using a highly customizable implementation method, multi-color and SF symbol hierarchies are supported and can be freely customized. " )
44+ . onboardingTextFormatting ( style: . content)
45+ }
46+
4747#if os(tvOS)
48- OnboardingItem ( systemName: " ellipsis " , shape: . white) {
49- OnboardingSubtitle ( " Many other benefits " )
50- OnboardingContent ( " Now, tvOS is also supported, making it easy to create onboarding. Now you can create onboarding for all platforms except watchOS. " )
51- }
48+ OnboardingItem ( systemName: " ellipsis " , shape: . white) {
49+ Text ( " Many other benefits " )
50+ . onboardingTextFormatting ( style: . subtitle)
51+
52+ Text ( " Now, tvOS is also supported, making it easy to create onboarding. Now you can create onboarding for all platforms except watchOS. " )
53+ . onboardingTextFormatting ( style: . content)
54+ }
5255#endif
53- } link: {
54- Link ( " Check our Privacy Policy… " , destination: URL ( string: " https://kc-2001ms.github.io/en/privacy.html " ) !)
55- } button: {
56- ContinueButton ( color: . accentColor, action: {
57- dismiss ( )
58- } )
59- }
56+ } link: {
57+ Link ( " Check our Privacy Policy… " , destination: URL ( string: " https://kc-2001ms.github.io/en/privacy.html " ) !)
58+ } button: {
59+ ContinueButton ( color: . accentColor, action: {
60+ dismiss ( )
61+ } )
62+ }
63+
6064 }
6165}
6266
0 commit comments