├── .gitignore ├── App Switcher.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── App Switcher ├── AppIconGridView.swift ├── AppIconView.swift ├── AppMiniIconView.swift ├── AppSwitcherView.swift ├── AppView.swift ├── App_SwitcherApp.swift ├── Assets.xcassets │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── desktop.imageset │ │ ├── Contents.json │ │ └── iOS13_wallpaper_RedDark_FlareZephyr.jpeg ├── DockView.swift ├── HomeScreen.swift ├── Info.plist └── Preview Content │ └── Preview Assets.xcassets │ └── Contents.json ├── LICENSE.txt └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | xcuserdata 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /App Switcher.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | BF1A4C9C250FA9B6000A9659 /* AppIconGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF1A4C9B250FA9B6000A9659 /* AppIconGridView.swift */; }; 11 | BF57A8CB2508F6910084D928 /* DockView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF57A8CA2508F6910084D928 /* DockView.swift */; }; 12 | BF57A8CD2508F6B80084D928 /* AppIconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF57A8CC2508F6B80084D928 /* AppIconView.swift */; }; 13 | BF57A8CF250DE28A0084D928 /* AppSwitcherView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF57A8CE250DE28A0084D928 /* AppSwitcherView.swift */; }; 14 | BF57A8D1250E3FDE0084D928 /* AppView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF57A8D0250E3FDE0084D928 /* AppView.swift */; }; 15 | BF57A8D3250E40330084D928 /* AppMiniIconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF57A8D2250E40330084D928 /* AppMiniIconView.swift */; }; 16 | BFA67A9E2508AACE007CF221 /* App_SwitcherApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA67A9D2508AACE007CF221 /* App_SwitcherApp.swift */; }; 17 | BFA67AA22508AACF007CF221 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BFA67AA12508AACF007CF221 /* Assets.xcassets */; }; 18 | BFA67AA52508AACF007CF221 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BFA67AA42508AACF007CF221 /* Preview Assets.xcassets */; }; 19 | BFA67AAD2508AB63007CF221 /* HomeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA67AAC2508AB63007CF221 /* HomeScreen.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | BF1A4C9B250FA9B6000A9659 /* AppIconGridView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIconGridView.swift; sourceTree = ""; }; 24 | BF57A8CA2508F6910084D928 /* DockView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DockView.swift; sourceTree = ""; }; 25 | BF57A8CC2508F6B80084D928 /* AppIconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIconView.swift; sourceTree = ""; }; 26 | BF57A8CE250DE28A0084D928 /* AppSwitcherView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppSwitcherView.swift; sourceTree = ""; }; 27 | BF57A8D0250E3FDE0084D928 /* AppView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppView.swift; sourceTree = ""; }; 28 | BF57A8D2250E40330084D928 /* AppMiniIconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppMiniIconView.swift; sourceTree = ""; }; 29 | BFA67A9A2508AACE007CF221 /* App Switcher.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "App Switcher.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | BFA67A9D2508AACE007CF221 /* App_SwitcherApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App_SwitcherApp.swift; sourceTree = ""; }; 31 | BFA67AA12508AACF007CF221 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 32 | BFA67AA42508AACF007CF221 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 33 | BFA67AA62508AACF007CF221 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | BFA67AAC2508AB63007CF221 /* HomeScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeScreen.swift; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | BFA67A972508AACE007CF221 /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | BFA67A912508AACE007CF221 = { 49 | isa = PBXGroup; 50 | children = ( 51 | BFA67A9C2508AACE007CF221 /* App Switcher */, 52 | BFA67A9B2508AACE007CF221 /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | BFA67A9B2508AACE007CF221 /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | BFA67A9A2508AACE007CF221 /* App Switcher.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | BFA67A9C2508AACE007CF221 /* App Switcher */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | BFA67A9D2508AACE007CF221 /* App_SwitcherApp.swift */, 68 | BFA67AAC2508AB63007CF221 /* HomeScreen.swift */, 69 | BF57A8CA2508F6910084D928 /* DockView.swift */, 70 | BF1A4C9B250FA9B6000A9659 /* AppIconGridView.swift */, 71 | BF57A8CC2508F6B80084D928 /* AppIconView.swift */, 72 | BF57A8CE250DE28A0084D928 /* AppSwitcherView.swift */, 73 | BF57A8D0250E3FDE0084D928 /* AppView.swift */, 74 | BF57A8D2250E40330084D928 /* AppMiniIconView.swift */, 75 | BFA67AA12508AACF007CF221 /* Assets.xcassets */, 76 | BFA67AA62508AACF007CF221 /* Info.plist */, 77 | BFA67AA32508AACF007CF221 /* Preview Content */, 78 | ); 79 | path = "App Switcher"; 80 | sourceTree = ""; 81 | }; 82 | BFA67AA32508AACF007CF221 /* Preview Content */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | BFA67AA42508AACF007CF221 /* Preview Assets.xcassets */, 86 | ); 87 | path = "Preview Content"; 88 | sourceTree = ""; 89 | }; 90 | /* End PBXGroup section */ 91 | 92 | /* Begin PBXNativeTarget section */ 93 | BFA67A992508AACE007CF221 /* App Switcher */ = { 94 | isa = PBXNativeTarget; 95 | buildConfigurationList = BFA67AA92508AAD0007CF221 /* Build configuration list for PBXNativeTarget "App Switcher" */; 96 | buildPhases = ( 97 | BFA67A962508AACE007CF221 /* Sources */, 98 | BFA67A972508AACE007CF221 /* Frameworks */, 99 | BFA67A982508AACE007CF221 /* Resources */, 100 | ); 101 | buildRules = ( 102 | ); 103 | dependencies = ( 104 | ); 105 | name = "App Switcher"; 106 | productName = "App Switcher"; 107 | productReference = BFA67A9A2508AACE007CF221 /* App Switcher.app */; 108 | productType = "com.apple.product-type.application"; 109 | }; 110 | /* End PBXNativeTarget section */ 111 | 112 | /* Begin PBXProject section */ 113 | BFA67A922508AACE007CF221 /* Project object */ = { 114 | isa = PBXProject; 115 | attributes = { 116 | LastSwiftUpdateCheck = 1200; 117 | LastUpgradeCheck = 1200; 118 | TargetAttributes = { 119 | BFA67A992508AACE007CF221 = { 120 | CreatedOnToolsVersion = 12.0; 121 | }; 122 | }; 123 | }; 124 | buildConfigurationList = BFA67A952508AACE007CF221 /* Build configuration list for PBXProject "App Switcher" */; 125 | compatibilityVersion = "Xcode 9.3"; 126 | developmentRegion = en; 127 | hasScannedForEncodings = 0; 128 | knownRegions = ( 129 | en, 130 | Base, 131 | ); 132 | mainGroup = BFA67A912508AACE007CF221; 133 | productRefGroup = BFA67A9B2508AACE007CF221 /* Products */; 134 | projectDirPath = ""; 135 | projectRoot = ""; 136 | targets = ( 137 | BFA67A992508AACE007CF221 /* App Switcher */, 138 | ); 139 | }; 140 | /* End PBXProject section */ 141 | 142 | /* Begin PBXResourcesBuildPhase section */ 143 | BFA67A982508AACE007CF221 /* Resources */ = { 144 | isa = PBXResourcesBuildPhase; 145 | buildActionMask = 2147483647; 146 | files = ( 147 | BFA67AA52508AACF007CF221 /* Preview Assets.xcassets in Resources */, 148 | BFA67AA22508AACF007CF221 /* Assets.xcassets in Resources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXResourcesBuildPhase section */ 153 | 154 | /* Begin PBXSourcesBuildPhase section */ 155 | BFA67A962508AACE007CF221 /* Sources */ = { 156 | isa = PBXSourcesBuildPhase; 157 | buildActionMask = 2147483647; 158 | files = ( 159 | BF57A8CF250DE28A0084D928 /* AppSwitcherView.swift in Sources */, 160 | BF57A8CB2508F6910084D928 /* DockView.swift in Sources */, 161 | BF57A8D3250E40330084D928 /* AppMiniIconView.swift in Sources */, 162 | BF1A4C9C250FA9B6000A9659 /* AppIconGridView.swift in Sources */, 163 | BF57A8D1250E3FDE0084D928 /* AppView.swift in Sources */, 164 | BFA67A9E2508AACE007CF221 /* App_SwitcherApp.swift in Sources */, 165 | BFA67AAD2508AB63007CF221 /* HomeScreen.swift in Sources */, 166 | BF57A8CD2508F6B80084D928 /* AppIconView.swift in Sources */, 167 | ); 168 | runOnlyForDeploymentPostprocessing = 0; 169 | }; 170 | /* End PBXSourcesBuildPhase section */ 171 | 172 | /* Begin XCBuildConfiguration section */ 173 | BFA67AA72508AAD0007CF221 /* Debug */ = { 174 | isa = XCBuildConfiguration; 175 | buildSettings = { 176 | ALWAYS_SEARCH_USER_PATHS = NO; 177 | CLANG_ANALYZER_NONNULL = YES; 178 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 180 | CLANG_CXX_LIBRARY = "libc++"; 181 | CLANG_ENABLE_MODULES = YES; 182 | CLANG_ENABLE_OBJC_ARC = YES; 183 | CLANG_ENABLE_OBJC_WEAK = YES; 184 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 185 | CLANG_WARN_BOOL_CONVERSION = YES; 186 | CLANG_WARN_COMMA = YES; 187 | CLANG_WARN_CONSTANT_CONVERSION = YES; 188 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 189 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 191 | CLANG_WARN_EMPTY_BODY = YES; 192 | CLANG_WARN_ENUM_CONVERSION = YES; 193 | CLANG_WARN_INFINITE_RECURSION = YES; 194 | CLANG_WARN_INT_CONVERSION = YES; 195 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 196 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 197 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 199 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 200 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 201 | CLANG_WARN_STRICT_PROTOTYPES = YES; 202 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 203 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 204 | CLANG_WARN_UNREACHABLE_CODE = YES; 205 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 206 | COPY_PHASE_STRIP = NO; 207 | DEBUG_INFORMATION_FORMAT = dwarf; 208 | ENABLE_STRICT_OBJC_MSGSEND = YES; 209 | ENABLE_TESTABILITY = YES; 210 | GCC_C_LANGUAGE_STANDARD = gnu11; 211 | GCC_DYNAMIC_NO_PIC = NO; 212 | GCC_NO_COMMON_BLOCKS = YES; 213 | GCC_OPTIMIZATION_LEVEL = 0; 214 | GCC_PREPROCESSOR_DEFINITIONS = ( 215 | "DEBUG=1", 216 | "$(inherited)", 217 | ); 218 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 219 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 220 | GCC_WARN_UNDECLARED_SELECTOR = YES; 221 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 222 | GCC_WARN_UNUSED_FUNCTION = YES; 223 | GCC_WARN_UNUSED_VARIABLE = YES; 224 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 225 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 226 | MTL_FAST_MATH = YES; 227 | ONLY_ACTIVE_ARCH = YES; 228 | SDKROOT = iphoneos; 229 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 230 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 231 | }; 232 | name = Debug; 233 | }; 234 | BFA67AA82508AAD0007CF221 /* Release */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 240 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 241 | CLANG_CXX_LIBRARY = "libc++"; 242 | CLANG_ENABLE_MODULES = YES; 243 | CLANG_ENABLE_OBJC_ARC = YES; 244 | CLANG_ENABLE_OBJC_WEAK = YES; 245 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 246 | CLANG_WARN_BOOL_CONVERSION = YES; 247 | CLANG_WARN_COMMA = YES; 248 | CLANG_WARN_CONSTANT_CONVERSION = YES; 249 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 251 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 252 | CLANG_WARN_EMPTY_BODY = YES; 253 | CLANG_WARN_ENUM_CONVERSION = YES; 254 | CLANG_WARN_INFINITE_RECURSION = YES; 255 | CLANG_WARN_INT_CONVERSION = YES; 256 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 257 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 258 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 260 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 261 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 262 | CLANG_WARN_STRICT_PROTOTYPES = YES; 263 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 264 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 265 | CLANG_WARN_UNREACHABLE_CODE = YES; 266 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 267 | COPY_PHASE_STRIP = NO; 268 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 269 | ENABLE_NS_ASSERTIONS = NO; 270 | ENABLE_STRICT_OBJC_MSGSEND = YES; 271 | GCC_C_LANGUAGE_STANDARD = gnu11; 272 | GCC_NO_COMMON_BLOCKS = YES; 273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 275 | GCC_WARN_UNDECLARED_SELECTOR = YES; 276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 277 | GCC_WARN_UNUSED_FUNCTION = YES; 278 | GCC_WARN_UNUSED_VARIABLE = YES; 279 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 280 | MTL_ENABLE_DEBUG_INFO = NO; 281 | MTL_FAST_MATH = YES; 282 | SDKROOT = iphoneos; 283 | SWIFT_COMPILATION_MODE = wholemodule; 284 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 285 | VALIDATE_PRODUCT = YES; 286 | }; 287 | name = Release; 288 | }; 289 | BFA67AAA2508AAD0007CF221 /* Debug */ = { 290 | isa = XCBuildConfiguration; 291 | buildSettings = { 292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 293 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 294 | CODE_SIGN_STYLE = Automatic; 295 | DEVELOPMENT_ASSET_PATHS = "\"App Switcher/Preview Content\""; 296 | DEVELOPMENT_TEAM = ""; 297 | ENABLE_PREVIEWS = YES; 298 | INFOPLIST_FILE = "App Switcher/Info.plist"; 299 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 300 | LD_RUNPATH_SEARCH_PATHS = ( 301 | "$(inherited)", 302 | "@executable_path/Frameworks", 303 | ); 304 | PRODUCT_BUNDLE_IDENTIFIER = "redartisan.App-Switcher"; 305 | PRODUCT_NAME = "$(TARGET_NAME)"; 306 | SWIFT_VERSION = 5.0; 307 | TARGETED_DEVICE_FAMILY = "1,2"; 308 | }; 309 | name = Debug; 310 | }; 311 | BFA67AAB2508AAD0007CF221 /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 315 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 316 | CODE_SIGN_STYLE = Automatic; 317 | DEVELOPMENT_ASSET_PATHS = "\"App Switcher/Preview Content\""; 318 | DEVELOPMENT_TEAM = ""; 319 | ENABLE_PREVIEWS = YES; 320 | INFOPLIST_FILE = "App Switcher/Info.plist"; 321 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 322 | LD_RUNPATH_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "@executable_path/Frameworks", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = "redartisan.App-Switcher"; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | SWIFT_VERSION = 5.0; 329 | TARGETED_DEVICE_FAMILY = "1,2"; 330 | }; 331 | name = Release; 332 | }; 333 | /* End XCBuildConfiguration section */ 334 | 335 | /* Begin XCConfigurationList section */ 336 | BFA67A952508AACE007CF221 /* Build configuration list for PBXProject "App Switcher" */ = { 337 | isa = XCConfigurationList; 338 | buildConfigurations = ( 339 | BFA67AA72508AAD0007CF221 /* Debug */, 340 | BFA67AA82508AAD0007CF221 /* Release */, 341 | ); 342 | defaultConfigurationIsVisible = 0; 343 | defaultConfigurationName = Release; 344 | }; 345 | BFA67AA92508AAD0007CF221 /* Build configuration list for PBXNativeTarget "App Switcher" */ = { 346 | isa = XCConfigurationList; 347 | buildConfigurations = ( 348 | BFA67AAA2508AAD0007CF221 /* Debug */, 349 | BFA67AAB2508AAD0007CF221 /* Release */, 350 | ); 351 | defaultConfigurationIsVisible = 0; 352 | defaultConfigurationName = Release; 353 | }; 354 | /* End XCConfigurationList section */ 355 | }; 356 | rootObject = BFA67A922508AACE007CF221 /* Project object */; 357 | } 358 | -------------------------------------------------------------------------------- /App Switcher.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /App Switcher.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /App Switcher/AppIconGridView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppIconGridView.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 14/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | // App icon grid view to layout some example app icons 11 | struct AppIconGridView: View { 12 | var appCount = 24 13 | 14 | let columns = [ 15 | GridItem(.flexible()), 16 | GridItem(.flexible()), 17 | GridItem(.flexible()), 18 | GridItem(.flexible()), 19 | ] 20 | 21 | var body: some View { 22 | LazyVGrid(columns: columns, alignment: .center) { 23 | ForEach(1...appCount, id: \.self) { item in 24 | AppIconView( 25 | title: "App \(item)", 26 | badgeNumber: item == 14 ? 3 : nil 27 | ) 28 | .padding(.bottom, 12) 29 | } 30 | } 31 | .padding(.horizontal) 32 | } 33 | } 34 | 35 | struct AppIconGridView_Previews: PreviewProvider { 36 | static var previews: some View { 37 | AppIconGridView() 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /App Switcher/AppIconView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppIconView.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 9/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | /// Home screen app icon view with badge support 11 | struct AppIconView: View { 12 | var title: String? 13 | var badgeNumber: Int? 14 | 15 | var body: some View { 16 | VStack { 17 | ZStack { 18 | RoundedRectangle(cornerRadius: 15, style: .continuous) 19 | .foregroundColor(Color(white: 0.1, opacity: 0.5)) 20 | 21 | if let number = badgeNumber { 22 | VStack { 23 | HStack { 24 | Spacer() 25 | 26 | Badge(number: number) 27 | .offset(x: 10.0, y: -10.0) 28 | } 29 | 30 | Spacer() 31 | } 32 | } 33 | 34 | Image(systemName: "applelogo") 35 | .font(.title) 36 | .offset(y: -2) // looks a little low 37 | } 38 | .frame(width: 62, height: 62) 39 | 40 | if let title = title { 41 | Text(title) 42 | .font(.caption) 43 | } 44 | } 45 | .foregroundColor(.white) 46 | } 47 | } 48 | 49 | struct Badge: View { 50 | var number: Int 51 | 52 | var body: some View { 53 | Text("\(number)") 54 | .font(.callout) 55 | .minimumScaleFactor(0.5) 56 | .frame(width: 25, height: 25) 57 | .background(Color.red) 58 | .clipShape(Circle()) 59 | } 60 | } 61 | 62 | struct AppIconView_Previews: PreviewProvider { 63 | static var previews: some View { 64 | AppIconView(title: "App", badgeNumber: 2) 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /App Switcher/AppMiniIconView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppMiniIcon.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 13/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | // App mini icon, shown above the app view 11 | struct AppMiniIconView: View { 12 | var image: String 13 | var color: Color 14 | 15 | var body: some View { 16 | GeometryReader { value in 17 | ZStack { 18 | color 19 | 20 | Image(systemName: image) 21 | .resizable() 22 | .aspectRatio(contentMode: .fit) 23 | .padding(.all, value.frame(in: .global).width * 0.18) 24 | .foregroundColor(.white) 25 | } 26 | .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity) 27 | .overlay( 28 | LinearGradient( 29 | gradient: Gradient( 30 | colors: [ 31 | Color.white.opacity(0.5), 32 | Color.clear 33 | ] 34 | ), 35 | startPoint: .top, 36 | endPoint: .bottom 37 | ) 38 | ) 39 | .clipShape(RoundedRectangle(cornerRadius: 8, style: .continuous)) 40 | .shadow(radius: 3) 41 | } 42 | } 43 | } 44 | 45 | struct AppMiniIcon_Previews: PreviewProvider { 46 | static var previews: some View { 47 | Group { 48 | AppMiniIconView(image: "message.fill", color: .green) 49 | .frame(width: 100, height: 100) 50 | .background(Color.red) 51 | 52 | AppMiniIconView(image: "message.fill", color: .green) 53 | .frame(width: 30, height: 30) 54 | .background(Color.red) 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /App Switcher/AppSwitcherView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppSwitcherView.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 13/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct AppSwitcherView: View { 11 | struct App: Identifiable { 12 | var id = UUID() 13 | var name: String 14 | var image: String 15 | var color: Color 16 | } 17 | 18 | let apps = [ 19 | App(name: "Messages", image: "message.fill", color: .green), 20 | App(name: "Watch", image: "applewatch", color: .black), 21 | App(name: "FaceTime", image: "video.fill", color: .green), 22 | App(name: "Apple", image: "applelogo", color: .blue), 23 | App(name: "Camera", image: "camera", color: .gray), 24 | App(name: "Phone", image: "phone.fill", color: .green), 25 | App(name: "TV", image: "appletv", color: .black), 26 | ] 27 | 28 | var viewState: HomeScreen.ViewState 29 | var dragX: CGFloat 30 | 31 | var body: some View { 32 | ZStack { 33 | ForEach(apps.indices.reversed(), id: \.self) { index in 34 | AppView(index: index, app: apps[index], titleOpacity: titleOpacity(for: index)) 35 | .offset(x: offset(for: index)) 36 | .scaleEffect(switcherEnabledScale(for: index)) 37 | } 38 | 39 | // VStack { 40 | // Spacer() 41 | // 42 | // Text("\(dragX) - \(switcherEnabledOffset(for: 1))") 43 | // } 44 | } 45 | .animation(.linear) 46 | } 47 | 48 | private func offset(for index: Int) -> CGFloat { 49 | switch viewState { 50 | case .apps: 51 | return 0 52 | case .blurred: 53 | return blurEnabledOffset(for: index) 54 | case .switcherEnabled: 55 | return switcherEnabledOffset(for: index) 56 | } 57 | } 58 | 59 | private let openingPanOffset: CGFloat = 200 // ensures app views are initially spread out 60 | private let openingAlignmentOffset: CGFloat = 80 // pushes switcher to the left a little due to above 61 | private let appViewSpacing: CGFloat = 50 // spaces the app views out so that they cycle when panned 62 | 63 | private func switcherEnabledOffset(for index: Int) -> CGFloat { 64 | curveX(dragX + openingPanOffset - CGFloat(index + 1) * appViewSpacing) - openingAlignmentOffset 65 | } 66 | 67 | private let blurAppViewSpacing: CGFloat = 20 // spacing between app views when in blurred mode, ie side by side 68 | 69 | private func blurEnabledOffset(for index: Int) -> CGFloat { 70 | return dragX - (CGFloat(index) * (260 + blurAppViewSpacing)) 71 | } 72 | 73 | private let scaleBandingFactor: CGFloat = 2000 // softens the scaling reduction to gradually decrease in size 74 | 75 | private func switcherEnabledScale(for index: Int) -> CGFloat { 76 | let offset = switcherEnabledOffset(for: index) 77 | 78 | if offset > 0 { 79 | return 1 80 | } 81 | 82 | return max(0.94, (1 - abs(offset) / scaleBandingFactor)) 83 | } 84 | 85 | private func titleOpacity(for index: Int) -> Double { 86 | if viewState == .blurred { 87 | return 1 88 | } 89 | 90 | let offset = switcherEnabledOffset(for: index) 91 | 92 | if offset > -50 && offset < 180 { 93 | return 1 94 | } 95 | 96 | return 0 97 | } 98 | 99 | private let curveDampingFactor: CGFloat = 20 // settles the power function down a little 100 | 101 | private func curveX(_ inputX: CGFloat) -> CGFloat { 102 | pow(1.8, inputX / curveDampingFactor) 103 | } 104 | } 105 | 106 | struct AppSwitcherView_Previews: PreviewProvider { 107 | static var previews: some View { 108 | AppSwitcherView(viewState: .switcherEnabled, dragX: 0) 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /App Switcher/AppView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppView.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 13/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | // View representing an app page in the app switcher 11 | struct AppView: View { 12 | var index: Int 13 | var app: AppSwitcherView.App 14 | var titleOpacity: Double 15 | 16 | var body: some View { 17 | VStack(alignment: .leading) { 18 | HStack { 19 | AppMiniIconView(image: app.image, color: app.color) 20 | .frame(width: 30, height: 30) 21 | 22 | Text(app.name) 23 | .font(.callout) 24 | .bold() 25 | .foregroundColor(.white) 26 | .opacity(titleOpacity) 27 | } 28 | .offset(x: 15) 29 | 30 | ZStack { 31 | RoundedRectangle(cornerRadius: 20.0) 32 | .foregroundColor(app.color) 33 | .shadow(radius: 3) 34 | 35 | Image(systemName: app.image) 36 | .resizable() 37 | .aspectRatio(contentMode: .fit) 38 | .frame(width: 80, height: 80) 39 | .foregroundColor(.white) 40 | } 41 | } 42 | .frame(width: 260, height: 580) 43 | } 44 | } 45 | 46 | struct AppView_Previews: PreviewProvider { 47 | static var previews: some View { 48 | AppView(index: 1, app: AppSwitcherView.App(name: "Messages", image: "message.fill", color: .red), titleOpacity: 1) 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /App Switcher/App_SwitcherApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // App_SwitcherApp.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 9/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct App_SwitcherApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | HomeScreen() 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /App Switcher/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 | -------------------------------------------------------------------------------- /App Switcher/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 | -------------------------------------------------------------------------------- /App Switcher/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /App Switcher/Assets.xcassets/desktop.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "filename" : "iOS13_wallpaper_RedDark_FlareZephyr.jpeg", 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /App Switcher/Assets.xcassets/desktop.imageset/iOS13_wallpaper_RedDark_FlareZephyr.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crafterm/swiftui-app-switcher/2d6d69be91d32f4041d76767b116d23d3f420cbf/App Switcher/Assets.xcassets/desktop.imageset/iOS13_wallpaper_RedDark_FlareZephyr.jpeg -------------------------------------------------------------------------------- /App Switcher/DockView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DockView.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 9/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | /// Dock view containing 4 app icons 11 | struct DockView: View { 12 | var appCount = 4 13 | 14 | let columns = [ 15 | GridItem(.flexible()), 16 | GridItem(.flexible()), 17 | GridItem(.flexible()), 18 | GridItem(.flexible()), 19 | ] 20 | 21 | var body: some View { 22 | HStack { 23 | LazyVGrid(columns: columns, alignment: .center) { 24 | ForEach(1...appCount, id: \.self) { item in 25 | AppIconView() 26 | .padding(.vertical, 16) 27 | } 28 | } 29 | .padding(.horizontal, 6) 30 | .background(Color(white: 1.0, opacity: 0.5)) 31 | .clipShape(RoundedRectangle(cornerRadius: 30, style: .continuous)) 32 | } 33 | .padding(.horizontal, 12) 34 | } 35 | } 36 | 37 | struct DockView_Previews: PreviewProvider { 38 | static var previews: some View { 39 | DockView() 40 | .background(Color.gray) 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /App Switcher/HomeScreen.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeScreen.swift 3 | // App Switcher 4 | // 5 | // Created by Marcus Crafter on 9/9/20. 6 | // 7 | 8 | import SwiftUI 9 | 10 | /// Primary container view of the apps, and switcher. 11 | struct HomeScreen: View { 12 | 13 | /// Interaction state 14 | enum ViewState: Comparable { 15 | case apps // showing apps on the home screen 16 | case blurred // blurred apps, with app switcher in side/side layout 17 | case switcherEnabled // switcher enabled with sliding reveal animation 18 | } 19 | 20 | // amount to drag the screen vertically to engage the switcher 21 | private let switcherDragThreshold: CGFloat = 80 22 | 23 | @GestureState private var dragState = CGSize.zero 24 | @State private var viewState: ViewState = .apps 25 | @State private var dragEndX: CGFloat = 0 26 | 27 | var body: some View { 28 | ZStack { 29 | ZStack(alignment: .center) { 30 | BackgroundView() 31 | .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity) 32 | 33 | VStack { 34 | AppIconGridView() 35 | .padding(.top, 50) 36 | 37 | Spacer() 38 | 39 | DockView() 40 | .padding(.bottom, 12) 41 | } 42 | .scaleEffect(scaleValue) 43 | 44 | } 45 | .edgesIgnoringSafeArea(.all) 46 | .blur(radius: blurValue) 47 | .animation(.easeOut) 48 | 49 | if viewState >= .blurred { 50 | Color.black.opacity(0.01) 51 | .onTapGesture { 52 | self.viewState = .apps 53 | self.dragEndX = 0 54 | } 55 | } 56 | 57 | AppSwitcherView(viewState: viewState, dragX: dragState.width + dragEndX) 58 | .offset(x: switcherOffsetX) 59 | .scaleEffect(switcherScale) 60 | .animation(.easeInOut) 61 | } 62 | .gesture( 63 | DragGesture() 64 | .updating($dragState) { value, state, transaction in 65 | state = value.translation 66 | 67 | // 20% under to trigger a pull effect 68 | let threshold = switcherDragThreshold * 0.80 69 | 70 | if self.viewState == .apps && value.translation.height < -threshold { 71 | DispatchQueue.main.async { 72 | self.viewState = .blurred 73 | } 74 | } 75 | } 76 | .onEnded { value in 77 | if self.viewState == .switcherEnabled { 78 | self.dragEndX += value.translation.width 79 | } else { 80 | self.dragEndX = 0 81 | } 82 | 83 | if self.viewState >= .blurred { 84 | self.viewState = .switcherEnabled 85 | } else { 86 | self.viewState = .apps 87 | } 88 | } 89 | ) 90 | } 91 | 92 | /// Positions the app switcher based on interaction. 93 | /// When fully enabled its centered, blurred its slightly exposed 94 | /// to the left, and when apps are shown its animated offscreen 95 | private var switcherOffsetX: CGFloat { 96 | switch viewState { 97 | case .switcherEnabled: 98 | return 0 99 | case .blurred: 100 | return -300 + dragState.width 101 | case .apps: 102 | return -500 103 | } 104 | } 105 | 106 | /// Scales the switcher based on interaction. 107 | /// When in blurred mode height changes scale the app switcher down 108 | /// to 70% while dragging 109 | private var switcherScale: CGFloat { 110 | switch viewState { 111 | case .switcherEnabled: 112 | return 1 113 | case .blurred: 114 | return max(0.7, 1 - abs(dragState.height) / 580) 115 | case .apps: 116 | return 1 117 | } 118 | } 119 | 120 | /// Amount to blur the background and app icons by when the switcher 121 | /// is engaged. 122 | private var blurValue: CGFloat { 123 | if viewState >= .blurred { 124 | return 12 125 | } 126 | 127 | return 0 128 | } 129 | 130 | /// Amount to scale the background and app icons by while initially 131 | /// dragging, and to remain at once the switcher is engaged. 132 | private var scaleValue: CGFloat { 133 | let height = dragState.height 134 | 135 | if viewState >= .blurred { 136 | return 1 - switcherDragThreshold / 1000 137 | } 138 | 139 | if height >= 0 { 140 | return 1 141 | } 142 | 143 | return 1 - abs(height) / 1000 144 | } 145 | } 146 | 147 | /// Placeholder background view 148 | struct BackgroundView: View { 149 | var body: some View { 150 | Image("desktop") 151 | } 152 | } 153 | 154 | struct HomeScreen_Previews: PreviewProvider { 155 | static var previews: some View { 156 | HomeScreen() 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /App Switcher/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 | 40 | UISupportedInterfaceOrientations~ipad 41 | 42 | UIInterfaceOrientationPortrait 43 | UIInterfaceOrientationPortraitUpsideDown 44 | UIInterfaceOrientationLandscapeLeft 45 | UIInterfaceOrientationLandscapeRight 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /App Switcher/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Marcus Crafter 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## SwiftUI - iOS App Switcher 2 | 3 | This project is an approximation of the iOS app switcher UI experience, built with SwiftUI. 4 | 5 | The following interactions are supported: 6 | 7 | * Initial blurred state exposing part of the app switcher along the leading edge of the screen, with 8 | continued dragging revealing app views in a side by side layout, scaling in size as the height of 9 | the drag changes. 10 | * Overlapping layout with horizontal panning shifting views from the left to the right in an 11 | accelerated fashion. 12 | 13 | To view, open the project in Xcode 12+ and build/run or preview HomeScreen.swift, tap & drag up from the 14 | dock. Enjoy. 15 | 16 | @crafterm 17 | --------------------------------------------------------------------------------