├── .DS_Store
├── Onboarding
├── Assets.xcassets
│ ├── Contents.json
│ ├── Engage.imageset
│ │ ├── Contents.json
│ │ └── Engage.svg
│ ├── Login.imageset
│ │ ├── Contents.json
│ │ └── Login.svg
│ ├── Analytics.imageset
│ │ ├── Contents.json
│ │ └── Analytics.svg
│ ├── Profile.imageset
│ │ ├── Contents.json
│ │ └── Profile.svg
│ ├── Teamwork.imageset
│ │ ├── Contents.json
│ │ └── Teamwork.svg
│ ├── LeaveFeedback.imageset
│ │ ├── Contents.json
│ │ └── LeaveFeedback.svg
│ ├── AccentColor.colorset
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── OnboardCard.swift
├── OnboardingApp.swift
├── OnboardingScreens.swift
├── OnboardData.swift
├── OnboardSet.swift
├── Info.plist
├── ContentView.swift
└── OBCardView.swift
├── README.assets
└── Onboarding.gif
├── Onboarding.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── project.pbxproj
├── README.md
├── LICENSE
└── .gitignore
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/StewartLynch/Onboarding-SwiftUI2/HEAD/.DS_Store
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/README.assets/Onboarding.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/StewartLynch/Onboarding-SwiftUI2/HEAD/README.assets/Onboarding.gif
--------------------------------------------------------------------------------
/Onboarding/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Onboarding.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Onboarding/OnboardCard.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OnboardCard.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import Foundation
9 |
10 | struct OnboardCard: Identifiable {
11 | let id = UUID()
12 | let title: String
13 | let image: String
14 | let text: String
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Onboarding/OnboardingApp.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OnboardingApp.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import SwiftUI
9 |
10 | @main
11 | struct OnboardingApp: App {
12 | var body: some Scene {
13 | WindowGroup {
14 | ContentView()
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Engage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "Engage.svg",
5 | "idiom" : "universal"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Login.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "Login.svg",
5 | "idiom" : "universal"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Analytics.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "Analytics.svg",
5 | "idiom" : "universal"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Profile.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "Profile.svg",
5 | "idiom" : "universal"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Teamwork.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "Teamwork.svg",
5 | "idiom" : "universal"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/LeaveFeedback.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "LeaveFeedback.svg",
5 | "idiom" : "universal"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/AccentColor.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "21",
9 | "green" : "138",
10 | "red" : "0"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Onboarding-SwiftUI2
2 | Completed project for creating reusable Onboarding screens in SwiftUI V2
3 |
4 | 
5 |
6 | To see how this project was built, from scratch, please watch this video and subscribe to my YouTube Channel
7 |
8 |
11 |
--------------------------------------------------------------------------------
/Onboarding/OnboardingScreens.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OnboardingScreens.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct OnboardingScreens: View {
11 | @Binding var isPresenting: Bool
12 | var onboardSet: OnboardSet
13 | var body: some View {
14 | VStack {
15 | TabView {
16 | ForEach(onboardSet.cards) { item in
17 | OBCardView(isShowing: $isPresenting, card: item, width: onboardSet.width, height: onboardSet.height)
18 | }
19 | }.frame(height: onboardSet.height + 120)
20 | .tabViewStyle(PageTabViewStyle())
21 | .indexViewStyle(PageIndexViewStyle(backgroundDisplayMode: .always))
22 | Spacer()
23 | }
24 | }
25 | }
26 |
27 | struct OnboardingScreens_Previews: PreviewProvider {
28 | static var previews: some View {
29 | OnboardingScreens(isPresenting: .constant(true), onboardSet: OnboardSet.previewSet())
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Stewart Lynch
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Onboarding/OnboardData.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OnboardData.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import UIKit
9 |
10 | enum OnboardData {
11 | static func buildSet(width:CGFloat = 350, height: CGFloat = 350) -> OnboardSet {
12 | let onboardSet = OnboardSet()
13 | onboardSet.dimensions(width: width, height: height)
14 | onboardSet.newCard(title: "Login",
15 | image: "Login",
16 | text: "Enter your credentials and log in.")
17 | onboardSet.newCard(title: "Update Profile",
18 | image: "Profile",
19 | text: "Make sure you update your profile and avatar.")
20 | onboardSet.newCard(title: "Participate",
21 | image: "Engage",
22 | text: "Engage with others online. Join the community.")
23 | onboardSet.newCard(title: "Leave Feedback",
24 | image: "LeaveFeedback",
25 | text: "We want to hear from you so please let us know what you think.")
26 | onboardSet.newCard(title: "Your Data",
27 | image: "Analytics",
28 | text: "Your data is your own. View your stats at any time.")
29 | return onboardSet
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Onboarding/OnboardSet.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OnboardSet.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import UIKit
9 |
10 | class OnboardSet {
11 | private(set) var cards: [OnboardCard] = []
12 | private(set) var width: CGFloat = 350
13 | private(set) var height: CGFloat = 350
14 |
15 | func dimensions(width: CGFloat, height: CGFloat) {
16 | self.width = width
17 | self.height = height
18 | }
19 |
20 | func newCard(title: String, image: String, text: String) {
21 | cards.append(OnboardCard(title: title, image: image, text: text))
22 | }
23 | }
24 |
25 | extension OnboardSet {
26 | static func previewSet() -> OnboardSet {
27 | let onboardSet = OnboardSet()
28 | onboardSet.newCard(title: "Login",
29 | image: "Login",
30 | text: "Enter your credentials and log in.")
31 | onboardSet.newCard(title: "Update Profile",
32 | image: "Profile",
33 | text: "Make sure you update your profile and avatar.")
34 | onboardSet.newCard(title: "Participate",
35 | image: "Engage",
36 | text: "Engage with others online. Join the community.")
37 | onboardSet.newCard(title: "Leave Feedback",
38 | image: "LeaveFeedback",
39 | text: "We want to hear from you so please let us know what you think.")
40 | onboardSet.newCard(title: "Your Data",
41 | image: "Analytics",
42 | text: "Your data is your own. View your stats at any time.")
43 | return onboardSet
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Onboarding/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIApplicationSceneManifest
24 |
25 | UIApplicationSupportsMultipleScenes
26 |
27 |
28 | UIApplicationSupportsIndirectInputEvents
29 |
30 | UILaunchScreen
31 |
32 | UIRequiredDeviceCapabilities
33 |
34 | armv7
35 |
36 | UISupportedInterfaceOrientations
37 |
38 | UIInterfaceOrientationPortrait
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UISupportedInterfaceOrientations~ipad
43 |
44 | UIInterfaceOrientationPortrait
45 | UIInterfaceOrientationPortraitUpsideDown
46 | UIInterfaceOrientationLandscapeLeft
47 | UIInterfaceOrientationLandscapeRight
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/Onboarding/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct ContentView: View {
11 | @State private var showOnBoarding = false
12 | @AppStorage("ObboardBeenViewed") var hasOnboarded = false
13 | var onboardSet = OnboardData.buildSet()
14 | var body: some View {
15 | NavigationView {
16 | ZStack {
17 | VStack {
18 | Image("Teamwork")
19 | .resizable()
20 | .scaledToFit()
21 | Text("This is a demo of Onboarding Screens and more stuff too!")
22 | }
23 | .padding(.horizontal)
24 | .edgesIgnoringSafeArea(.bottom)
25 | .disabled(showOnBoarding)
26 | .blur(radius: showOnBoarding ? /*@START_MENU_TOKEN@*/3.0/*@END_MENU_TOKEN@*/ : 0)
27 | .navigationTitle("Onboarding Screens")
28 | if showOnBoarding {
29 | OnboardingScreens(isPresenting: $showOnBoarding, onboardSet: onboardSet)
30 | }
31 | }
32 | .onAppear {
33 | hasOnboarded = false // only here for testing
34 | if !hasOnboarded {
35 | DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
36 | withAnimation {
37 | showOnBoarding.toggle()
38 | hasOnboarded = true
39 | }
40 | }
41 | }
42 | }
43 | }
44 | }
45 | }
46 |
47 | struct ContentView_Previews: PreviewProvider {
48 | static var previews: some View {
49 | ContentView()
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/Onboarding/OBCardView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OBCardView.swift
3 | // Onboarding
4 | //
5 | // Created by Stewart Lynch on 2020-06-27.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct OBCardView: View {
11 | @Binding var isShowing: Bool
12 | let card: OnboardCard
13 | let width: CGFloat
14 | let height: CGFloat
15 | var body: some View {
16 | VStack {
17 | HStack(alignment: .top) {
18 | Text(card.title)
19 | .font(.largeTitle)
20 | Spacer()
21 | Button(action: {
22 | withAnimation {
23 | isShowing = false
24 | }
25 | }) {
26 | Image(systemName: "xmark.circle.fill")
27 | .font(.title)
28 | }
29 | }
30 | Image(card.image)
31 | .resizable()
32 | .scaledToFit()
33 | Text(card.text)
34 | Spacer()
35 | }
36 | .padding(.horizontal)
37 | .padding(.top,10)
38 | .frame(width: width, height: height)
39 | .background(RoundedRectangle(cornerRadius: 10, style: .continuous)
40 | .fill(Color(.secondarySystemBackground))
41 | .shadow(radius: /*@START_MENU_TOKEN@*/10/*@END_MENU_TOKEN@*/))
42 | }
43 | }
44 |
45 | struct OBCardView_Previews: PreviewProvider {
46 | static let onboardSet = OnboardSet.previewSet()
47 | static var previews: some View {
48 | Group {
49 | OBCardView(isShowing: .constant(true), card: onboardSet.cards[0], width: 350, height: 350)
50 | .previewLayout(.sizeThatFits)
51 | OBCardView(isShowing: .constant(true), card: onboardSet.cards[3], width: 400, height: 500)
52 | .preferredColorScheme(.dark)
53 | .previewLayout(.sizeThatFits)
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "scale" : "1x",
46 | "size" : "20x20"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "scale" : "2x",
51 | "size" : "20x20"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "scale" : "1x",
56 | "size" : "29x29"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "scale" : "2x",
61 | "size" : "29x29"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "scale" : "1x",
66 | "size" : "40x40"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "scale" : "2x",
71 | "size" : "40x40"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "scale" : "1x",
76 | "size" : "76x76"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "scale" : "2x",
81 | "size" : "76x76"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "scale" : "2x",
86 | "size" : "83.5x83.5"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "scale" : "1x",
91 | "size" : "1024x1024"
92 | }
93 | ],
94 | "info" : {
95 | "author" : "xcode",
96 | "version" : 1
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## User settings
6 | xcuserdata/
7 |
8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
9 | *.xcscmblueprint
10 | *.xccheckout
11 |
12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13 | build/
14 | DerivedData/
15 | *.moved-aside
16 | *.pbxuser
17 | !default.pbxuser
18 | *.mode1v3
19 | !default.mode1v3
20 | *.mode2v3
21 | !default.mode2v3
22 | *.perspectivev3
23 | !default.perspectivev3
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 |
28 | ## App packaging
29 | *.ipa
30 | *.dSYM.zip
31 | *.dSYM
32 |
33 | ## Playgrounds
34 | timeline.xctimeline
35 | playground.xcworkspace
36 |
37 | # Swift Package Manager
38 | #
39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
40 | # Packages/
41 | # Package.pins
42 | # Package.resolved
43 | # *.xcodeproj
44 | #
45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
46 | # hence it is not needed unless you have added a package configuration file to your project
47 | # .swiftpm
48 |
49 | .build/
50 |
51 | # CocoaPods
52 | #
53 | # We recommend against adding the Pods directory to your .gitignore. However
54 | # you should judge for yourself, the pros and cons are mentioned at:
55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
56 | #
57 | # Pods/
58 | #
59 | # Add this line if you want to avoid checking in source code from the Xcode workspace
60 | # *.xcworkspace
61 |
62 | # Carthage
63 | #
64 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
65 | # Carthage/Checkouts
66 |
67 | Carthage/Build/
68 |
69 | # Accio dependency management
70 | Dependencies/
71 | .accio/
72 |
73 | # fastlane
74 | #
75 | # It is recommended to not store the screenshots in the git repo.
76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed.
77 | # For more information about the recommended setup visit:
78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
79 |
80 | fastlane/report.xml
81 | fastlane/Preview.html
82 | fastlane/screenshots/**/*.png
83 | fastlane/test_output
84 |
85 | # Code Injection
86 | #
87 | # After new code Injection tools there's a generated folder /iOSInjectionProject
88 | # https://github.com/johnno1962/injectionforxcode
89 |
90 | iOSInjectionProject/
91 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Profile.imageset/Profile.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Login.imageset/Login.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Analytics.imageset/Analytics.svg:
--------------------------------------------------------------------------------
1 |
45 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Engage.imageset/Engage.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Onboarding.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | BB0B173024A7C54E007B6E18 /* OnboardingApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B172F24A7C54E007B6E18 /* OnboardingApp.swift */; };
11 | BB0B173224A7C54E007B6E18 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B173124A7C54E007B6E18 /* ContentView.swift */; };
12 | BB0B173424A7C54F007B6E18 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BB0B173324A7C54F007B6E18 /* Assets.xcassets */; };
13 | BB0B173724A7C54F007B6E18 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BB0B173624A7C54F007B6E18 /* Preview Assets.xcassets */; };
14 | BB0B174124A7F3CE007B6E18 /* OnboardingScreens.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B174024A7F3CE007B6E18 /* OnboardingScreens.swift */; };
15 | BB0B174724A7F838007B6E18 /* OnboardCard.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B174624A7F838007B6E18 /* OnboardCard.swift */; };
16 | BB0B174924A7F875007B6E18 /* OnboardSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B174824A7F875007B6E18 /* OnboardSet.swift */; };
17 | BB0B174B24A7FA65007B6E18 /* OBCardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B174A24A7FA65007B6E18 /* OBCardView.swift */; };
18 | BB0B174D24A7FFCB007B6E18 /* OnboardData.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB0B174C24A7FFCB007B6E18 /* OnboardData.swift */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXFileReference section */
22 | BB0B172C24A7C54E007B6E18 /* Onboarding.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Onboarding.app; sourceTree = BUILT_PRODUCTS_DIR; };
23 | BB0B172F24A7C54E007B6E18 /* OnboardingApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingApp.swift; sourceTree = ""; };
24 | BB0B173124A7C54E007B6E18 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
25 | BB0B173324A7C54F007B6E18 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
26 | BB0B173624A7C54F007B6E18 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
27 | BB0B173824A7C54F007B6E18 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
28 | BB0B174024A7F3CE007B6E18 /* OnboardingScreens.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingScreens.swift; sourceTree = ""; };
29 | BB0B174624A7F838007B6E18 /* OnboardCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardCard.swift; sourceTree = ""; };
30 | BB0B174824A7F875007B6E18 /* OnboardSet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardSet.swift; sourceTree = ""; };
31 | BB0B174A24A7FA65007B6E18 /* OBCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OBCardView.swift; sourceTree = ""; };
32 | BB0B174C24A7FFCB007B6E18 /* OnboardData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardData.swift; sourceTree = ""; };
33 | /* End PBXFileReference section */
34 |
35 | /* Begin PBXFrameworksBuildPhase section */
36 | BB0B172924A7C54E007B6E18 /* Frameworks */ = {
37 | isa = PBXFrameworksBuildPhase;
38 | buildActionMask = 2147483647;
39 | files = (
40 | );
41 | runOnlyForDeploymentPostprocessing = 0;
42 | };
43 | /* End PBXFrameworksBuildPhase section */
44 |
45 | /* Begin PBXGroup section */
46 | BB0B172324A7C54E007B6E18 = {
47 | isa = PBXGroup;
48 | children = (
49 | BB0B172E24A7C54E007B6E18 /* Onboarding */,
50 | BB0B172D24A7C54E007B6E18 /* Products */,
51 | );
52 | sourceTree = "";
53 | };
54 | BB0B172D24A7C54E007B6E18 /* Products */ = {
55 | isa = PBXGroup;
56 | children = (
57 | BB0B172C24A7C54E007B6E18 /* Onboarding.app */,
58 | );
59 | name = Products;
60 | sourceTree = "";
61 | };
62 | BB0B172E24A7C54E007B6E18 /* Onboarding */ = {
63 | isa = PBXGroup;
64 | children = (
65 | BB0B172F24A7C54E007B6E18 /* OnboardingApp.swift */,
66 | BB0B173124A7C54E007B6E18 /* ContentView.swift */,
67 | BB0B174024A7F3CE007B6E18 /* OnboardingScreens.swift */,
68 | BB0B174624A7F838007B6E18 /* OnboardCard.swift */,
69 | BB0B174824A7F875007B6E18 /* OnboardSet.swift */,
70 | BB0B174A24A7FA65007B6E18 /* OBCardView.swift */,
71 | BB0B174C24A7FFCB007B6E18 /* OnboardData.swift */,
72 | BB0B173324A7C54F007B6E18 /* Assets.xcassets */,
73 | BB0B173824A7C54F007B6E18 /* Info.plist */,
74 | BB0B173524A7C54F007B6E18 /* Preview Content */,
75 | );
76 | path = Onboarding;
77 | sourceTree = "";
78 | };
79 | BB0B173524A7C54F007B6E18 /* Preview Content */ = {
80 | isa = PBXGroup;
81 | children = (
82 | BB0B173624A7C54F007B6E18 /* Preview Assets.xcassets */,
83 | );
84 | path = "Preview Content";
85 | sourceTree = "";
86 | };
87 | /* End PBXGroup section */
88 |
89 | /* Begin PBXNativeTarget section */
90 | BB0B172B24A7C54E007B6E18 /* Onboarding */ = {
91 | isa = PBXNativeTarget;
92 | buildConfigurationList = BB0B173B24A7C54F007B6E18 /* Build configuration list for PBXNativeTarget "Onboarding" */;
93 | buildPhases = (
94 | BB0B172824A7C54E007B6E18 /* Sources */,
95 | BB0B172924A7C54E007B6E18 /* Frameworks */,
96 | BB0B172A24A7C54E007B6E18 /* Resources */,
97 | );
98 | buildRules = (
99 | );
100 | dependencies = (
101 | );
102 | name = Onboarding;
103 | productName = Onboarding;
104 | productReference = BB0B172C24A7C54E007B6E18 /* Onboarding.app */;
105 | productType = "com.apple.product-type.application";
106 | };
107 | /* End PBXNativeTarget section */
108 |
109 | /* Begin PBXProject section */
110 | BB0B172424A7C54E007B6E18 /* Project object */ = {
111 | isa = PBXProject;
112 | attributes = {
113 | LastSwiftUpdateCheck = 1200;
114 | LastUpgradeCheck = 1200;
115 | TargetAttributes = {
116 | BB0B172B24A7C54E007B6E18 = {
117 | CreatedOnToolsVersion = 12.0;
118 | };
119 | };
120 | };
121 | buildConfigurationList = BB0B172724A7C54E007B6E18 /* Build configuration list for PBXProject "Onboarding" */;
122 | compatibilityVersion = "Xcode 9.3";
123 | developmentRegion = en;
124 | hasScannedForEncodings = 0;
125 | knownRegions = (
126 | en,
127 | Base,
128 | );
129 | mainGroup = BB0B172324A7C54E007B6E18;
130 | productRefGroup = BB0B172D24A7C54E007B6E18 /* Products */;
131 | projectDirPath = "";
132 | projectRoot = "";
133 | targets = (
134 | BB0B172B24A7C54E007B6E18 /* Onboarding */,
135 | );
136 | };
137 | /* End PBXProject section */
138 |
139 | /* Begin PBXResourcesBuildPhase section */
140 | BB0B172A24A7C54E007B6E18 /* Resources */ = {
141 | isa = PBXResourcesBuildPhase;
142 | buildActionMask = 2147483647;
143 | files = (
144 | BB0B173724A7C54F007B6E18 /* Preview Assets.xcassets in Resources */,
145 | BB0B173424A7C54F007B6E18 /* Assets.xcassets in Resources */,
146 | );
147 | runOnlyForDeploymentPostprocessing = 0;
148 | };
149 | /* End PBXResourcesBuildPhase section */
150 |
151 | /* Begin PBXSourcesBuildPhase section */
152 | BB0B172824A7C54E007B6E18 /* Sources */ = {
153 | isa = PBXSourcesBuildPhase;
154 | buildActionMask = 2147483647;
155 | files = (
156 | BB0B173224A7C54E007B6E18 /* ContentView.swift in Sources */,
157 | BB0B174B24A7FA65007B6E18 /* OBCardView.swift in Sources */,
158 | BB0B174124A7F3CE007B6E18 /* OnboardingScreens.swift in Sources */,
159 | BB0B173024A7C54E007B6E18 /* OnboardingApp.swift in Sources */,
160 | BB0B174D24A7FFCB007B6E18 /* OnboardData.swift in Sources */,
161 | BB0B174724A7F838007B6E18 /* OnboardCard.swift in Sources */,
162 | BB0B174924A7F875007B6E18 /* OnboardSet.swift in Sources */,
163 | );
164 | runOnlyForDeploymentPostprocessing = 0;
165 | };
166 | /* End PBXSourcesBuildPhase section */
167 |
168 | /* Begin XCBuildConfiguration section */
169 | BB0B173924A7C54F007B6E18 /* Debug */ = {
170 | isa = XCBuildConfiguration;
171 | buildSettings = {
172 | ALWAYS_SEARCH_USER_PATHS = NO;
173 | CLANG_ANALYZER_NONNULL = YES;
174 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
175 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
176 | CLANG_CXX_LIBRARY = "libc++";
177 | CLANG_ENABLE_MODULES = YES;
178 | CLANG_ENABLE_OBJC_ARC = YES;
179 | CLANG_ENABLE_OBJC_WEAK = YES;
180 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
181 | CLANG_WARN_BOOL_CONVERSION = YES;
182 | CLANG_WARN_COMMA = YES;
183 | CLANG_WARN_CONSTANT_CONVERSION = YES;
184 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
185 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
186 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
187 | CLANG_WARN_EMPTY_BODY = YES;
188 | CLANG_WARN_ENUM_CONVERSION = YES;
189 | CLANG_WARN_INFINITE_RECURSION = YES;
190 | CLANG_WARN_INT_CONVERSION = YES;
191 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
192 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
193 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
194 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
195 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
196 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
197 | CLANG_WARN_STRICT_PROTOTYPES = YES;
198 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
199 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
200 | CLANG_WARN_UNREACHABLE_CODE = YES;
201 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
202 | COPY_PHASE_STRIP = NO;
203 | DEBUG_INFORMATION_FORMAT = dwarf;
204 | ENABLE_STRICT_OBJC_MSGSEND = YES;
205 | ENABLE_TESTABILITY = YES;
206 | GCC_C_LANGUAGE_STANDARD = gnu11;
207 | GCC_DYNAMIC_NO_PIC = NO;
208 | GCC_NO_COMMON_BLOCKS = YES;
209 | GCC_OPTIMIZATION_LEVEL = 0;
210 | GCC_PREPROCESSOR_DEFINITIONS = (
211 | "DEBUG=1",
212 | "$(inherited)",
213 | );
214 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
215 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
216 | GCC_WARN_UNDECLARED_SELECTOR = YES;
217 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
218 | GCC_WARN_UNUSED_FUNCTION = YES;
219 | GCC_WARN_UNUSED_VARIABLE = YES;
220 | IPHONEOS_DEPLOYMENT_TARGET = 14.0;
221 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
222 | MTL_FAST_MATH = YES;
223 | ONLY_ACTIVE_ARCH = YES;
224 | SDKROOT = iphoneos;
225 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
226 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
227 | };
228 | name = Debug;
229 | };
230 | BB0B173A24A7C54F007B6E18 /* Release */ = {
231 | isa = XCBuildConfiguration;
232 | buildSettings = {
233 | ALWAYS_SEARCH_USER_PATHS = NO;
234 | CLANG_ANALYZER_NONNULL = YES;
235 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
236 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
237 | CLANG_CXX_LIBRARY = "libc++";
238 | CLANG_ENABLE_MODULES = YES;
239 | CLANG_ENABLE_OBJC_ARC = YES;
240 | CLANG_ENABLE_OBJC_WEAK = YES;
241 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
242 | CLANG_WARN_BOOL_CONVERSION = YES;
243 | CLANG_WARN_COMMA = YES;
244 | CLANG_WARN_CONSTANT_CONVERSION = YES;
245 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
246 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
247 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
248 | CLANG_WARN_EMPTY_BODY = YES;
249 | CLANG_WARN_ENUM_CONVERSION = YES;
250 | CLANG_WARN_INFINITE_RECURSION = YES;
251 | CLANG_WARN_INT_CONVERSION = YES;
252 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
253 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
254 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
255 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
256 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
261 | CLANG_WARN_UNREACHABLE_CODE = YES;
262 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu11;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 14.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | MTL_FAST_MATH = YES;
278 | SDKROOT = iphoneos;
279 | SWIFT_COMPILATION_MODE = wholemodule;
280 | SWIFT_OPTIMIZATION_LEVEL = "-O";
281 | VALIDATE_PRODUCT = YES;
282 | };
283 | name = Release;
284 | };
285 | BB0B173C24A7C54F007B6E18 /* Debug */ = {
286 | isa = XCBuildConfiguration;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
290 | CODE_SIGN_STYLE = Automatic;
291 | DEVELOPMENT_ASSET_PATHS = "\"Onboarding/Preview Content\"";
292 | DEVELOPMENT_TEAM = RKV4UP49S6;
293 | ENABLE_PREVIEWS = YES;
294 | INFOPLIST_FILE = Onboarding/Info.plist;
295 | IPHONEOS_DEPLOYMENT_TARGET = 14.0;
296 | LD_RUNPATH_SEARCH_PATHS = (
297 | "$(inherited)",
298 | "@executable_path/Frameworks",
299 | );
300 | PRODUCT_BUNDLE_IDENTIFIER = com.createchsol.Onboarding;
301 | PRODUCT_NAME = "$(TARGET_NAME)";
302 | SWIFT_VERSION = 5.0;
303 | TARGETED_DEVICE_FAMILY = "1,2";
304 | };
305 | name = Debug;
306 | };
307 | BB0B173D24A7C54F007B6E18 /* Release */ = {
308 | isa = XCBuildConfiguration;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
312 | CODE_SIGN_STYLE = Automatic;
313 | DEVELOPMENT_ASSET_PATHS = "\"Onboarding/Preview Content\"";
314 | DEVELOPMENT_TEAM = RKV4UP49S6;
315 | ENABLE_PREVIEWS = YES;
316 | INFOPLIST_FILE = Onboarding/Info.plist;
317 | IPHONEOS_DEPLOYMENT_TARGET = 14.0;
318 | LD_RUNPATH_SEARCH_PATHS = (
319 | "$(inherited)",
320 | "@executable_path/Frameworks",
321 | );
322 | PRODUCT_BUNDLE_IDENTIFIER = com.createchsol.Onboarding;
323 | PRODUCT_NAME = "$(TARGET_NAME)";
324 | SWIFT_VERSION = 5.0;
325 | TARGETED_DEVICE_FAMILY = "1,2";
326 | };
327 | name = Release;
328 | };
329 | /* End XCBuildConfiguration section */
330 |
331 | /* Begin XCConfigurationList section */
332 | BB0B172724A7C54E007B6E18 /* Build configuration list for PBXProject "Onboarding" */ = {
333 | isa = XCConfigurationList;
334 | buildConfigurations = (
335 | BB0B173924A7C54F007B6E18 /* Debug */,
336 | BB0B173A24A7C54F007B6E18 /* Release */,
337 | );
338 | defaultConfigurationIsVisible = 0;
339 | defaultConfigurationName = Release;
340 | };
341 | BB0B173B24A7C54F007B6E18 /* Build configuration list for PBXNativeTarget "Onboarding" */ = {
342 | isa = XCConfigurationList;
343 | buildConfigurations = (
344 | BB0B173C24A7C54F007B6E18 /* Debug */,
345 | BB0B173D24A7C54F007B6E18 /* Release */,
346 | );
347 | defaultConfigurationIsVisible = 0;
348 | defaultConfigurationName = Release;
349 | };
350 | /* End XCConfigurationList section */
351 | };
352 | rootObject = BB0B172424A7C54E007B6E18 /* Project object */;
353 | }
354 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/LeaveFeedback.imageset/LeaveFeedback.svg:
--------------------------------------------------------------------------------
1 |
57 |
--------------------------------------------------------------------------------
/Onboarding/Assets.xcassets/Teamwork.imageset/Teamwork.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------