├── README.md └── Welcome ├── Welcome.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── jordansinger.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── jordansinger.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist └── Welcome ├── Assets.xcassets ├── AccentColor.colorset │ └── Contents.json ├── AppIcon.appiconset │ └── Contents.json └── Contents.json ├── ContentView.swift ├── FeatureCell.swift ├── Info.plist ├── Preview Content └── Preview Assets.xcassets │ └── Contents.json ├── WelcomeApp.swift └── WelcomeScreen.swift /README.md: -------------------------------------------------------------------------------- 1 | # Welcome screen in SwiftUI 2 | 3 | ![Simulator Screen Shot - iPhone 12 Pro - 2020-11-25 at 17 48 26](https://user-images.githubusercontent.com/110813/100289412-d0122b80-2f46-11eb-9d23-de4e988d40f7.png) 4 | -------------------------------------------------------------------------------- /Welcome/Welcome.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 866466DE256F11D20086AC94 /* WelcomeApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 866466DD256F11D20086AC94 /* WelcomeApp.swift */; }; 11 | 866466E0256F11D20086AC94 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 866466DF256F11D20086AC94 /* ContentView.swift */; }; 12 | 866466E2256F11D20086AC94 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 866466E1256F11D20086AC94 /* Assets.xcassets */; }; 13 | 866466E5256F11D20086AC94 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 866466E4256F11D20086AC94 /* Preview Assets.xcassets */; }; 14 | 866466EE256F12480086AC94 /* WelcomeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 866466ED256F12480086AC94 /* WelcomeScreen.swift */; }; 15 | 866466F2256F141F0086AC94 /* FeatureCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 866466F1256F141F0086AC94 /* FeatureCell.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 866466DA256F11D20086AC94 /* Welcome.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Welcome.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 866466DD256F11D20086AC94 /* WelcomeApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeApp.swift; sourceTree = ""; }; 21 | 866466DF256F11D20086AC94 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 22 | 866466E1256F11D20086AC94 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 23 | 866466E4256F11D20086AC94 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 24 | 866466E6256F11D20086AC94 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 25 | 866466ED256F12480086AC94 /* WelcomeScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeScreen.swift; sourceTree = ""; }; 26 | 866466F1256F141F0086AC94 /* FeatureCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeatureCell.swift; sourceTree = ""; }; 27 | /* End PBXFileReference section */ 28 | 29 | /* Begin PBXFrameworksBuildPhase section */ 30 | 866466D7256F11D20086AC94 /* Frameworks */ = { 31 | isa = PBXFrameworksBuildPhase; 32 | buildActionMask = 2147483647; 33 | files = ( 34 | ); 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXFrameworksBuildPhase section */ 38 | 39 | /* Begin PBXGroup section */ 40 | 866466D1256F11D20086AC94 = { 41 | isa = PBXGroup; 42 | children = ( 43 | 866466DC256F11D20086AC94 /* Welcome */, 44 | 866466DB256F11D20086AC94 /* Products */, 45 | ); 46 | sourceTree = ""; 47 | }; 48 | 866466DB256F11D20086AC94 /* Products */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 866466DA256F11D20086AC94 /* Welcome.app */, 52 | ); 53 | name = Products; 54 | sourceTree = ""; 55 | }; 56 | 866466DC256F11D20086AC94 /* Welcome */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 866466DD256F11D20086AC94 /* WelcomeApp.swift */, 60 | 866466DF256F11D20086AC94 /* ContentView.swift */, 61 | 866466ED256F12480086AC94 /* WelcomeScreen.swift */, 62 | 866466F1256F141F0086AC94 /* FeatureCell.swift */, 63 | 866466E1256F11D20086AC94 /* Assets.xcassets */, 64 | 866466E6256F11D20086AC94 /* Info.plist */, 65 | 866466E3256F11D20086AC94 /* Preview Content */, 66 | ); 67 | path = Welcome; 68 | sourceTree = ""; 69 | }; 70 | 866466E3256F11D20086AC94 /* Preview Content */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 866466E4256F11D20086AC94 /* Preview Assets.xcassets */, 74 | ); 75 | path = "Preview Content"; 76 | sourceTree = ""; 77 | }; 78 | /* End PBXGroup section */ 79 | 80 | /* Begin PBXNativeTarget section */ 81 | 866466D9256F11D20086AC94 /* Welcome */ = { 82 | isa = PBXNativeTarget; 83 | buildConfigurationList = 866466E9256F11D20086AC94 /* Build configuration list for PBXNativeTarget "Welcome" */; 84 | buildPhases = ( 85 | 866466D6256F11D20086AC94 /* Sources */, 86 | 866466D7256F11D20086AC94 /* Frameworks */, 87 | 866466D8256F11D20086AC94 /* Resources */, 88 | ); 89 | buildRules = ( 90 | ); 91 | dependencies = ( 92 | ); 93 | name = Welcome; 94 | productName = Welcome; 95 | productReference = 866466DA256F11D20086AC94 /* Welcome.app */; 96 | productType = "com.apple.product-type.application"; 97 | }; 98 | /* End PBXNativeTarget section */ 99 | 100 | /* Begin PBXProject section */ 101 | 866466D2256F11D20086AC94 /* Project object */ = { 102 | isa = PBXProject; 103 | attributes = { 104 | LastSwiftUpdateCheck = 1220; 105 | LastUpgradeCheck = 1220; 106 | TargetAttributes = { 107 | 866466D9256F11D20086AC94 = { 108 | CreatedOnToolsVersion = 12.2; 109 | }; 110 | }; 111 | }; 112 | buildConfigurationList = 866466D5256F11D20086AC94 /* Build configuration list for PBXProject "Welcome" */; 113 | compatibilityVersion = "Xcode 9.3"; 114 | developmentRegion = en; 115 | hasScannedForEncodings = 0; 116 | knownRegions = ( 117 | en, 118 | Base, 119 | ); 120 | mainGroup = 866466D1256F11D20086AC94; 121 | productRefGroup = 866466DB256F11D20086AC94 /* Products */; 122 | projectDirPath = ""; 123 | projectRoot = ""; 124 | targets = ( 125 | 866466D9256F11D20086AC94 /* Welcome */, 126 | ); 127 | }; 128 | /* End PBXProject section */ 129 | 130 | /* Begin PBXResourcesBuildPhase section */ 131 | 866466D8256F11D20086AC94 /* Resources */ = { 132 | isa = PBXResourcesBuildPhase; 133 | buildActionMask = 2147483647; 134 | files = ( 135 | 866466E5256F11D20086AC94 /* Preview Assets.xcassets in Resources */, 136 | 866466E2256F11D20086AC94 /* Assets.xcassets in Resources */, 137 | ); 138 | runOnlyForDeploymentPostprocessing = 0; 139 | }; 140 | /* End PBXResourcesBuildPhase section */ 141 | 142 | /* Begin PBXSourcesBuildPhase section */ 143 | 866466D6256F11D20086AC94 /* Sources */ = { 144 | isa = PBXSourcesBuildPhase; 145 | buildActionMask = 2147483647; 146 | files = ( 147 | 866466F2256F141F0086AC94 /* FeatureCell.swift in Sources */, 148 | 866466EE256F12480086AC94 /* WelcomeScreen.swift in Sources */, 149 | 866466E0256F11D20086AC94 /* ContentView.swift in Sources */, 150 | 866466DE256F11D20086AC94 /* WelcomeApp.swift in Sources */, 151 | ); 152 | runOnlyForDeploymentPostprocessing = 0; 153 | }; 154 | /* End PBXSourcesBuildPhase section */ 155 | 156 | /* Begin XCBuildConfiguration section */ 157 | 866466E7256F11D20086AC94 /* Debug */ = { 158 | isa = XCBuildConfiguration; 159 | buildSettings = { 160 | ALWAYS_SEARCH_USER_PATHS = NO; 161 | CLANG_ANALYZER_NONNULL = YES; 162 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 163 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 164 | CLANG_CXX_LIBRARY = "libc++"; 165 | CLANG_ENABLE_MODULES = YES; 166 | CLANG_ENABLE_OBJC_ARC = YES; 167 | CLANG_ENABLE_OBJC_WEAK = YES; 168 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 169 | CLANG_WARN_BOOL_CONVERSION = YES; 170 | CLANG_WARN_COMMA = YES; 171 | CLANG_WARN_CONSTANT_CONVERSION = YES; 172 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 173 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 174 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 175 | CLANG_WARN_EMPTY_BODY = YES; 176 | CLANG_WARN_ENUM_CONVERSION = YES; 177 | CLANG_WARN_INFINITE_RECURSION = YES; 178 | CLANG_WARN_INT_CONVERSION = YES; 179 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 180 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 181 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 182 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 183 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 184 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 185 | CLANG_WARN_STRICT_PROTOTYPES = YES; 186 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 187 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 188 | CLANG_WARN_UNREACHABLE_CODE = YES; 189 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 190 | COPY_PHASE_STRIP = NO; 191 | DEBUG_INFORMATION_FORMAT = dwarf; 192 | ENABLE_STRICT_OBJC_MSGSEND = YES; 193 | ENABLE_TESTABILITY = YES; 194 | GCC_C_LANGUAGE_STANDARD = gnu11; 195 | GCC_DYNAMIC_NO_PIC = NO; 196 | GCC_NO_COMMON_BLOCKS = YES; 197 | GCC_OPTIMIZATION_LEVEL = 0; 198 | GCC_PREPROCESSOR_DEFINITIONS = ( 199 | "DEBUG=1", 200 | "$(inherited)", 201 | ); 202 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 203 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 204 | GCC_WARN_UNDECLARED_SELECTOR = YES; 205 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 206 | GCC_WARN_UNUSED_FUNCTION = YES; 207 | GCC_WARN_UNUSED_VARIABLE = YES; 208 | IPHONEOS_DEPLOYMENT_TARGET = 14.2; 209 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 210 | MTL_FAST_MATH = YES; 211 | ONLY_ACTIVE_ARCH = YES; 212 | SDKROOT = iphoneos; 213 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 214 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 215 | }; 216 | name = Debug; 217 | }; 218 | 866466E8256F11D20086AC94 /* Release */ = { 219 | isa = XCBuildConfiguration; 220 | buildSettings = { 221 | ALWAYS_SEARCH_USER_PATHS = NO; 222 | CLANG_ANALYZER_NONNULL = YES; 223 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 224 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 225 | CLANG_CXX_LIBRARY = "libc++"; 226 | CLANG_ENABLE_MODULES = YES; 227 | CLANG_ENABLE_OBJC_ARC = YES; 228 | CLANG_ENABLE_OBJC_WEAK = YES; 229 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 230 | CLANG_WARN_BOOL_CONVERSION = YES; 231 | CLANG_WARN_COMMA = YES; 232 | CLANG_WARN_CONSTANT_CONVERSION = YES; 233 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 234 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 235 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 236 | CLANG_WARN_EMPTY_BODY = YES; 237 | CLANG_WARN_ENUM_CONVERSION = YES; 238 | CLANG_WARN_INFINITE_RECURSION = YES; 239 | CLANG_WARN_INT_CONVERSION = YES; 240 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 241 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 242 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 243 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 244 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 245 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 246 | CLANG_WARN_STRICT_PROTOTYPES = YES; 247 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 248 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 249 | CLANG_WARN_UNREACHABLE_CODE = YES; 250 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 251 | COPY_PHASE_STRIP = NO; 252 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 253 | ENABLE_NS_ASSERTIONS = NO; 254 | ENABLE_STRICT_OBJC_MSGSEND = YES; 255 | GCC_C_LANGUAGE_STANDARD = gnu11; 256 | GCC_NO_COMMON_BLOCKS = YES; 257 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 258 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 259 | GCC_WARN_UNDECLARED_SELECTOR = YES; 260 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 261 | GCC_WARN_UNUSED_FUNCTION = YES; 262 | GCC_WARN_UNUSED_VARIABLE = YES; 263 | IPHONEOS_DEPLOYMENT_TARGET = 14.2; 264 | MTL_ENABLE_DEBUG_INFO = NO; 265 | MTL_FAST_MATH = YES; 266 | SDKROOT = iphoneos; 267 | SWIFT_COMPILATION_MODE = wholemodule; 268 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 269 | VALIDATE_PRODUCT = YES; 270 | }; 271 | name = Release; 272 | }; 273 | 866466EA256F11D20086AC94 /* Debug */ = { 274 | isa = XCBuildConfiguration; 275 | buildSettings = { 276 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 277 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 278 | CODE_SIGN_STYLE = Automatic; 279 | DEVELOPMENT_ASSET_PATHS = "\"Welcome/Preview Content\""; 280 | ENABLE_PREVIEWS = YES; 281 | INFOPLIST_FILE = Welcome/Info.plist; 282 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 283 | LD_RUNPATH_SEARCH_PATHS = ( 284 | "$(inherited)", 285 | "@executable_path/Frameworks", 286 | ); 287 | PRODUCT_BUNDLE_IDENTIFIER = demo.Welcome; 288 | PRODUCT_NAME = "$(TARGET_NAME)"; 289 | SWIFT_VERSION = 5.0; 290 | TARGETED_DEVICE_FAMILY = "1,2"; 291 | }; 292 | name = Debug; 293 | }; 294 | 866466EB256F11D20086AC94 /* Release */ = { 295 | isa = XCBuildConfiguration; 296 | buildSettings = { 297 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 298 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 299 | CODE_SIGN_STYLE = Automatic; 300 | DEVELOPMENT_ASSET_PATHS = "\"Welcome/Preview Content\""; 301 | ENABLE_PREVIEWS = YES; 302 | INFOPLIST_FILE = Welcome/Info.plist; 303 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 304 | LD_RUNPATH_SEARCH_PATHS = ( 305 | "$(inherited)", 306 | "@executable_path/Frameworks", 307 | ); 308 | PRODUCT_BUNDLE_IDENTIFIER = demo.Welcome; 309 | PRODUCT_NAME = "$(TARGET_NAME)"; 310 | SWIFT_VERSION = 5.0; 311 | TARGETED_DEVICE_FAMILY = "1,2"; 312 | }; 313 | name = Release; 314 | }; 315 | /* End XCBuildConfiguration section */ 316 | 317 | /* Begin XCConfigurationList section */ 318 | 866466D5256F11D20086AC94 /* Build configuration list for PBXProject "Welcome" */ = { 319 | isa = XCConfigurationList; 320 | buildConfigurations = ( 321 | 866466E7256F11D20086AC94 /* Debug */, 322 | 866466E8256F11D20086AC94 /* Release */, 323 | ); 324 | defaultConfigurationIsVisible = 0; 325 | defaultConfigurationName = Release; 326 | }; 327 | 866466E9256F11D20086AC94 /* Build configuration list for PBXNativeTarget "Welcome" */ = { 328 | isa = XCConfigurationList; 329 | buildConfigurations = ( 330 | 866466EA256F11D20086AC94 /* Debug */, 331 | 866466EB256F11D20086AC94 /* Release */, 332 | ); 333 | defaultConfigurationIsVisible = 0; 334 | defaultConfigurationName = Release; 335 | }; 336 | /* End XCConfigurationList section */ 337 | }; 338 | rootObject = 866466D2256F11D20086AC94 /* Project object */; 339 | } 340 | -------------------------------------------------------------------------------- /Welcome/Welcome.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Welcome/Welcome.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Welcome/Welcome.xcodeproj/project.xcworkspace/xcuserdata/jordansinger.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jordansinger/welcome-screen-swiftui/bdfb0010216240e7710c897d95ca8aa18efb0755/Welcome/Welcome.xcodeproj/project.xcworkspace/xcuserdata/jordansinger.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Welcome/Welcome.xcodeproj/xcuserdata/jordansinger.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Welcome.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Welcome/Welcome/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Welcome/Welcome/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 | -------------------------------------------------------------------------------- /Welcome/Welcome/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Welcome/Welcome/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // Welcome 4 | // 5 | // Created by Jordan Singer on 11/25/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ContentView: View { 11 | @State var showWelcomeScreen = true 12 | 13 | var body: some View { 14 | Button(action: { self.showWelcomeScreen = true }) { 15 | Text("Show Welcome screen") 16 | } 17 | .sheet(isPresented: $showWelcomeScreen) { 18 | WelcomeScreen(showWelcomeScreen: $showWelcomeScreen) 19 | } 20 | } 21 | } 22 | 23 | struct ContentView_Previews: PreviewProvider { 24 | static var previews: some View { 25 | ContentView() 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Welcome/Welcome/FeatureCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeatureCell.swift 3 | // Welcome 4 | // 5 | // Created by Jordan Singer on 11/25/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct FeatureCell: View { 11 | var image: String 12 | var title: String 13 | var subtitle: String 14 | var color: Color 15 | 16 | var body: some View { 17 | HStack(spacing: 24) { 18 | Image(systemName: image) 19 | // .renderingMode(.original) 20 | .resizable() 21 | .aspectRatio(contentMode: .fit) 22 | .frame(width: 32) 23 | .foregroundColor(color) 24 | 25 | VStack(alignment: .leading, spacing: 2) { 26 | Text(title) 27 | .font(.subheadline) 28 | .fontWeight(.semibold) 29 | Text(subtitle) 30 | .foregroundColor(.secondary) 31 | .font(.subheadline) 32 | } 33 | 34 | Spacer() 35 | } 36 | } 37 | } 38 | 39 | struct FeatureCell_Previews: PreviewProvider { 40 | static var previews: some View { 41 | FeatureCell(image: "text.badge.checkmark", title: "Title", subtitle: "Subtitle", color: .blue) 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Welcome/Welcome/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 | -------------------------------------------------------------------------------- /Welcome/Welcome/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Welcome/Welcome/WelcomeApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WelcomeApp.swift 3 | // Welcome 4 | // 5 | // Created by Jordan Singer on 11/25/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct WelcomeApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView() 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Welcome/Welcome/WelcomeScreen.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WelcomeScreen.swift 3 | // Welcome 4 | // 5 | // Created by Jordan Singer on 11/25/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct WelcomeScreen: View { 11 | @Binding var showWelcomeScreen: Bool 12 | 13 | var body: some View { 14 | VStack { 15 | Spacer() 16 | Text("Welcome to Apple Support") 17 | .font(.largeTitle) 18 | .fontWeight(.bold) 19 | .multilineTextAlignment(.center) 20 | .padding(.horizontal, 48) 21 | Spacer() 22 | 23 | VStack(spacing: 24) { 24 | FeatureCell(image: "text.badge.checkmark", title: "Self-Solve", subtitle: "Get helpful information to resolve your issue wherever you are.", color: .green) 25 | 26 | FeatureCell(image: "person.2.fill", title: "Get Support", subtitle: "Get help from a real person by phone, chat, and more.", color: .blue) 27 | 28 | FeatureCell(image: "calendar", title: "Schedule a Repair", subtitle: "Find a Genius Bar or Apple Service Provider near you.", color: .red) 29 | } 30 | .padding(.leading) 31 | 32 | Spacer() 33 | Spacer() 34 | 35 | Button(action: { self.showWelcomeScreen = false }) { 36 | HStack { 37 | Spacer() 38 | Text("Continue") 39 | .font(.headline) 40 | .foregroundColor(.white) 41 | Spacer() 42 | } 43 | } 44 | .frame(height: 50) 45 | .background(Color.blue) 46 | .cornerRadius(15) 47 | } 48 | .padding() 49 | } 50 | } 51 | 52 | struct WelcomeScreen_Previews: PreviewProvider { 53 | static var previews: some View { 54 | WelcomeScreen(showWelcomeScreen: .constant(true)) 55 | } 56 | } 57 | --------------------------------------------------------------------------------