├── AutoLayout-iOS13.xcodeproj ├── .xcodesamplecode.plist ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcuserdata │ └── angelayu.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── AutoLayout-iOS13 ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── 1024.png │ │ ├── 114.png │ │ ├── 120.png │ │ ├── 180.png │ │ ├── 29.png │ │ ├── 40.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 60.png │ │ ├── 80.png │ │ ├── 87.png │ │ └── Contents.json │ ├── Contents.json │ ├── DiceFive.imageset │ │ ├── Contents.json │ │ ├── dice5.png │ │ ├── dice5@2x.png │ │ └── dice5@3x.png │ ├── DiceFour.imageset │ │ ├── Contents.json │ │ ├── dice4.png │ │ ├── dice4@2x.png │ │ └── dice4@3x.png │ ├── DiceOne.imageset │ │ ├── Contents.json │ │ ├── dice1.png │ │ ├── dice1@2x.png │ │ └── dice1@3x.png │ ├── DiceSix.imageset │ │ ├── Contents.json │ │ ├── dice6.png │ │ ├── dice6@2x.png │ │ └── dice6@3x.png │ ├── DiceThree.imageset │ │ ├── Contents.json │ │ ├── dice3.png │ │ ├── dice3@2x.png │ │ └── dice3@3x.png │ ├── DiceTwo.imageset │ │ ├── Contents.json │ │ ├── dice2.png │ │ ├── dice2@2x.png │ │ └── dice2@3x.png │ ├── DiceeLogo.imageset │ │ ├── Contents.json │ │ ├── diceeLogo.png │ │ ├── diceeLogo@2x.png │ │ └── diceeLogo@3x.png │ ├── GreenBackground.imageset │ │ ├── Contents.json │ │ ├── newbackground.png │ │ ├── newbackground@2x.png │ │ └── newbackground@3x.png │ └── LaunchScreenAssets │ │ ├── AppBreweryBackground.imageset │ │ ├── Contents.json │ │ ├── background-1.png │ │ ├── background-2.png │ │ └── background.png │ │ ├── AppBreweryLogo.imageset │ │ ├── AppBreweryLogo.png │ │ └── Contents.json │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── SceneDelegate.swift └── ViewController.swift ├── Documentation ├── AppBreweryBanner.png └── readme-end-banner.png └── README.md /AutoLayout-iOS13.xcodeproj/.xcodesamplecode.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AutoLayout-iOS13.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | AD0C511322C623E500AADC4D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD0C511222C623E500AADC4D /* AppDelegate.swift */; }; 11 | AD0C511522C623E500AADC4D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD0C511422C623E500AADC4D /* SceneDelegate.swift */; }; 12 | AD0C511722C623E500AADC4D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD0C511622C623E500AADC4D /* ViewController.swift */; }; 13 | AD0C511A22C623E500AADC4D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD0C511822C623E500AADC4D /* Main.storyboard */; }; 14 | AD0C511C22C623E700AADC4D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD0C511B22C623E700AADC4D /* Assets.xcassets */; }; 15 | AD0C511F22C623E700AADC4D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD0C511D22C623E700AADC4D /* LaunchScreen.storyboard */; }; 16 | AD0C512922C6276D00AADC4D /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = AD0C512822C6276D00AADC4D /* README.md */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | AD0C510F22C623E500AADC4D /* AutoLayout-iOS13.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AutoLayout-iOS13.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | AD0C511222C623E500AADC4D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 22 | AD0C511422C623E500AADC4D /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 23 | AD0C511622C623E500AADC4D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 24 | AD0C511922C623E500AADC4D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 25 | AD0C511B22C623E700AADC4D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 26 | AD0C511E22C623E700AADC4D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 27 | AD0C512022C623E700AADC4D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | AD0C512822C6276D00AADC4D /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | AD0C510C22C623E500AADC4D /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | AD0C510622C623E500AADC4D = { 43 | isa = PBXGroup; 44 | children = ( 45 | AD0C512822C6276D00AADC4D /* README.md */, 46 | AD0C511122C623E500AADC4D /* AutoLayout-iOS13 */, 47 | AD0C511022C623E500AADC4D /* Products */, 48 | ); 49 | sourceTree = ""; 50 | }; 51 | AD0C511022C623E500AADC4D /* Products */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | AD0C510F22C623E500AADC4D /* AutoLayout-iOS13.app */, 55 | ); 56 | name = Products; 57 | sourceTree = ""; 58 | }; 59 | AD0C511122C623E500AADC4D /* AutoLayout-iOS13 */ = { 60 | isa = PBXGroup; 61 | children = ( 62 | AD0C511222C623E500AADC4D /* AppDelegate.swift */, 63 | AD0C511422C623E500AADC4D /* SceneDelegate.swift */, 64 | AD0C511622C623E500AADC4D /* ViewController.swift */, 65 | AD0C511822C623E500AADC4D /* Main.storyboard */, 66 | AD0C511B22C623E700AADC4D /* Assets.xcassets */, 67 | AD0C511D22C623E700AADC4D /* LaunchScreen.storyboard */, 68 | AD0C512022C623E700AADC4D /* Info.plist */, 69 | ); 70 | path = "AutoLayout-iOS13"; 71 | sourceTree = ""; 72 | }; 73 | /* End PBXGroup section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | AD0C510E22C623E500AADC4D /* AutoLayout-iOS13 */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = AD0C512322C623E700AADC4D /* Build configuration list for PBXNativeTarget "AutoLayout-iOS13" */; 79 | buildPhases = ( 80 | AD0C510B22C623E500AADC4D /* Sources */, 81 | AD0C510C22C623E500AADC4D /* Frameworks */, 82 | AD0C510D22C623E500AADC4D /* Resources */, 83 | ); 84 | buildRules = ( 85 | ); 86 | dependencies = ( 87 | ); 88 | name = "AutoLayout-iOS13"; 89 | productName = "AutoLayout-iOS13"; 90 | productReference = AD0C510F22C623E500AADC4D /* AutoLayout-iOS13.app */; 91 | productType = "com.apple.product-type.application"; 92 | }; 93 | /* End PBXNativeTarget section */ 94 | 95 | /* Begin PBXProject section */ 96 | AD0C510722C623E500AADC4D /* Project object */ = { 97 | isa = PBXProject; 98 | attributes = { 99 | LastSwiftUpdateCheck = 1100; 100 | LastUpgradeCheck = 1100; 101 | ORGANIZATIONNAME = "The App Brewery"; 102 | TargetAttributes = { 103 | AD0C510E22C623E500AADC4D = { 104 | CreatedOnToolsVersion = 11.0; 105 | }; 106 | }; 107 | }; 108 | buildConfigurationList = AD0C510A22C623E500AADC4D /* Build configuration list for PBXProject "AutoLayout-iOS13" */; 109 | compatibilityVersion = "Xcode 9.3"; 110 | developmentRegion = en; 111 | hasScannedForEncodings = 0; 112 | knownRegions = ( 113 | en, 114 | Base, 115 | ); 116 | mainGroup = AD0C510622C623E500AADC4D; 117 | productRefGroup = AD0C511022C623E500AADC4D /* Products */; 118 | projectDirPath = ""; 119 | projectRoot = ""; 120 | targets = ( 121 | AD0C510E22C623E500AADC4D /* AutoLayout-iOS13 */, 122 | ); 123 | }; 124 | /* End PBXProject section */ 125 | 126 | /* Begin PBXResourcesBuildPhase section */ 127 | AD0C510D22C623E500AADC4D /* Resources */ = { 128 | isa = PBXResourcesBuildPhase; 129 | buildActionMask = 2147483647; 130 | files = ( 131 | AD0C511F22C623E700AADC4D /* LaunchScreen.storyboard in Resources */, 132 | AD0C511C22C623E700AADC4D /* Assets.xcassets in Resources */, 133 | AD0C512922C6276D00AADC4D /* README.md in Resources */, 134 | AD0C511A22C623E500AADC4D /* Main.storyboard in Resources */, 135 | ); 136 | runOnlyForDeploymentPostprocessing = 0; 137 | }; 138 | /* End PBXResourcesBuildPhase section */ 139 | 140 | /* Begin PBXSourcesBuildPhase section */ 141 | AD0C510B22C623E500AADC4D /* Sources */ = { 142 | isa = PBXSourcesBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | AD0C511722C623E500AADC4D /* ViewController.swift in Sources */, 146 | AD0C511322C623E500AADC4D /* AppDelegate.swift in Sources */, 147 | AD0C511522C623E500AADC4D /* SceneDelegate.swift in Sources */, 148 | ); 149 | runOnlyForDeploymentPostprocessing = 0; 150 | }; 151 | /* End PBXSourcesBuildPhase section */ 152 | 153 | /* Begin PBXVariantGroup section */ 154 | AD0C511822C623E500AADC4D /* Main.storyboard */ = { 155 | isa = PBXVariantGroup; 156 | children = ( 157 | AD0C511922C623E500AADC4D /* Base */, 158 | ); 159 | name = Main.storyboard; 160 | sourceTree = ""; 161 | }; 162 | AD0C511D22C623E700AADC4D /* LaunchScreen.storyboard */ = { 163 | isa = PBXVariantGroup; 164 | children = ( 165 | AD0C511E22C623E700AADC4D /* Base */, 166 | ); 167 | name = LaunchScreen.storyboard; 168 | sourceTree = ""; 169 | }; 170 | /* End PBXVariantGroup section */ 171 | 172 | /* Begin XCBuildConfiguration section */ 173 | AD0C512122C623E700AADC4D /* 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_RANGE_LOOP_ANALYSIS = YES; 200 | CLANG_WARN_STRICT_PROTOTYPES = YES; 201 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 202 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 203 | CLANG_WARN_UNREACHABLE_CODE = YES; 204 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 205 | COPY_PHASE_STRIP = NO; 206 | DEBUG_INFORMATION_FORMAT = dwarf; 207 | ENABLE_STRICT_OBJC_MSGSEND = YES; 208 | ENABLE_TESTABILITY = YES; 209 | GCC_C_LANGUAGE_STANDARD = gnu11; 210 | GCC_DYNAMIC_NO_PIC = NO; 211 | GCC_NO_COMMON_BLOCKS = YES; 212 | GCC_OPTIMIZATION_LEVEL = 0; 213 | GCC_PREPROCESSOR_DEFINITIONS = ( 214 | "DEBUG=1", 215 | "$(inherited)", 216 | ); 217 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 218 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 219 | GCC_WARN_UNDECLARED_SELECTOR = YES; 220 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 221 | GCC_WARN_UNUSED_FUNCTION = YES; 222 | GCC_WARN_UNUSED_VARIABLE = YES; 223 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 224 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 225 | MTL_FAST_MATH = YES; 226 | ONLY_ACTIVE_ARCH = YES; 227 | SDKROOT = iphoneos; 228 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 229 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 230 | }; 231 | name = Debug; 232 | }; 233 | AD0C512222C623E700AADC4D /* Release */ = { 234 | isa = XCBuildConfiguration; 235 | buildSettings = { 236 | ALWAYS_SEARCH_USER_PATHS = NO; 237 | CLANG_ANALYZER_NONNULL = YES; 238 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_ENABLE_OBJC_WEAK = YES; 244 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 245 | CLANG_WARN_BOOL_CONVERSION = YES; 246 | CLANG_WARN_COMMA = YES; 247 | CLANG_WARN_CONSTANT_CONVERSION = YES; 248 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 249 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 250 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 251 | CLANG_WARN_EMPTY_BODY = YES; 252 | CLANG_WARN_ENUM_CONVERSION = YES; 253 | CLANG_WARN_INFINITE_RECURSION = YES; 254 | CLANG_WARN_INT_CONVERSION = YES; 255 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 257 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 258 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 259 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 260 | CLANG_WARN_STRICT_PROTOTYPES = YES; 261 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 262 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 263 | CLANG_WARN_UNREACHABLE_CODE = YES; 264 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 265 | COPY_PHASE_STRIP = NO; 266 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 267 | ENABLE_NS_ASSERTIONS = NO; 268 | ENABLE_STRICT_OBJC_MSGSEND = YES; 269 | GCC_C_LANGUAGE_STANDARD = gnu11; 270 | GCC_NO_COMMON_BLOCKS = YES; 271 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 272 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 273 | GCC_WARN_UNDECLARED_SELECTOR = YES; 274 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 275 | GCC_WARN_UNUSED_FUNCTION = YES; 276 | GCC_WARN_UNUSED_VARIABLE = YES; 277 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 278 | MTL_ENABLE_DEBUG_INFO = NO; 279 | MTL_FAST_MATH = YES; 280 | SDKROOT = iphoneos; 281 | SWIFT_COMPILATION_MODE = wholemodule; 282 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 283 | VALIDATE_PRODUCT = YES; 284 | }; 285 | name = Release; 286 | }; 287 | AD0C512422C623E700AADC4D /* Debug */ = { 288 | isa = XCBuildConfiguration; 289 | buildSettings = { 290 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 291 | CODE_SIGN_STYLE = Automatic; 292 | INFOPLIST_FILE = "AutoLayout-iOS13/Info.plist"; 293 | LD_RUNPATH_SEARCH_PATHS = ( 294 | "$(inherited)", 295 | "@executable_path/Frameworks", 296 | ); 297 | PRODUCT_BUNDLE_IDENTIFIER = "co.appbrewery.AutoLayout-iOS13"; 298 | PRODUCT_NAME = "$(TARGET_NAME)"; 299 | SWIFT_VERSION = 5.0; 300 | TARGETED_DEVICE_FAMILY = 1; 301 | }; 302 | name = Debug; 303 | }; 304 | AD0C512522C623E700AADC4D /* Release */ = { 305 | isa = XCBuildConfiguration; 306 | buildSettings = { 307 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 308 | CODE_SIGN_STYLE = Automatic; 309 | INFOPLIST_FILE = "AutoLayout-iOS13/Info.plist"; 310 | LD_RUNPATH_SEARCH_PATHS = ( 311 | "$(inherited)", 312 | "@executable_path/Frameworks", 313 | ); 314 | PRODUCT_BUNDLE_IDENTIFIER = "co.appbrewery.AutoLayout-iOS13"; 315 | PRODUCT_NAME = "$(TARGET_NAME)"; 316 | SWIFT_VERSION = 5.0; 317 | TARGETED_DEVICE_FAMILY = 1; 318 | }; 319 | name = Release; 320 | }; 321 | /* End XCBuildConfiguration section */ 322 | 323 | /* Begin XCConfigurationList section */ 324 | AD0C510A22C623E500AADC4D /* Build configuration list for PBXProject "AutoLayout-iOS13" */ = { 325 | isa = XCConfigurationList; 326 | buildConfigurations = ( 327 | AD0C512122C623E700AADC4D /* Debug */, 328 | AD0C512222C623E700AADC4D /* Release */, 329 | ); 330 | defaultConfigurationIsVisible = 0; 331 | defaultConfigurationName = Release; 332 | }; 333 | AD0C512322C623E700AADC4D /* Build configuration list for PBXNativeTarget "AutoLayout-iOS13" */ = { 334 | isa = XCConfigurationList; 335 | buildConfigurations = ( 336 | AD0C512422C623E700AADC4D /* Debug */, 337 | AD0C512522C623E700AADC4D /* Release */, 338 | ); 339 | defaultConfigurationIsVisible = 0; 340 | defaultConfigurationName = Release; 341 | }; 342 | /* End XCConfigurationList section */ 343 | }; 344 | rootObject = AD0C510722C623E500AADC4D /* Project object */; 345 | } 346 | -------------------------------------------------------------------------------- /AutoLayout-iOS13.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AutoLayout-iOS13.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AutoLayout-iOS13.xcodeproj/xcuserdata/angelayu.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AutoLayout-iOS13.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /AutoLayout-iOS13/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AutoLayout-iOS13 4 | // 5 | // Created by Angela Yu on 28/06/2019. 6 | // Copyright © 2019 The App Brewery. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | func applicationWillTerminate(_ application: UIApplication) { 22 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 23 | } 24 | 25 | // MARK: UISceneSession Lifecycle 26 | 27 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 28 | // Called when a new scene session is being created. 29 | // Use this method to select a configuration to create the new scene with. 30 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 31 | } 32 | 33 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 34 | // Called when the user discards a scene session. 35 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 36 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 37 | } 38 | 39 | 40 | } 41 | 42 | -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/114.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/29.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/57.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "40.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "60.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "29.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "58.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "87.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "80.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "120.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "57x57", 47 | "idiom" : "iphone", 48 | "filename" : "57.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "57x57", 53 | "idiom" : "iphone", 54 | "filename" : "114.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "60x60", 59 | "idiom" : "iphone", 60 | "filename" : "120.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "60x60", 65 | "idiom" : "iphone", 66 | "filename" : "180.png", 67 | "scale" : "3x" 68 | }, 69 | { 70 | "size" : "1024x1024", 71 | "idiom" : "ios-marketing", 72 | "filename" : "1024.png", 73 | "scale" : "1x" 74 | } 75 | ], 76 | "info" : { 77 | "version" : 1, 78 | "author" : "xcode" 79 | } 80 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "dice5.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "dice5@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "dice5@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/dice5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/dice5.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/dice5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/dice5@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/dice5@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceFive.imageset/dice5@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "dice4.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "dice4@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "dice4@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/dice4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/dice4.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/dice4@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/dice4@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/dice4@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceFour.imageset/dice4@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "dice1.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "dice1@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "dice1@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/dice1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/dice1.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/dice1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/dice1@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/dice1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceOne.imageset/dice1@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "dice6.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "dice6@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "dice6@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/dice6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/dice6.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/dice6@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/dice6@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/dice6@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceSix.imageset/dice6@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "dice3.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "dice3@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "dice3@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/dice3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/dice3.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/dice3@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/dice3@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/dice3@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceThree.imageset/dice3@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "dice2.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "dice2@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "dice2@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/dice2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/dice2.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/dice2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/dice2@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/dice2@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceTwo.imageset/dice2@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "diceeLogo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "diceeLogo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "diceeLogo@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/diceeLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/diceeLogo.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/diceeLogo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/diceeLogo@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/diceeLogo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/DiceeLogo.imageset/diceeLogo@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "newbackground.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "newbackground@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "newbackground@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/newbackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/newbackground.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/newbackground@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/newbackground@2x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/newbackground@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/GreenBackground.imageset/newbackground@3x.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "background-2.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "background-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "background.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/background-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/background-1.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/background-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/background-2.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryBackground.imageset/background.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryLogo.imageset/AppBreweryLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryLogo.imageset/AppBreweryLogo.png -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/AppBreweryLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "AppBreweryLogo.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Assets.xcassets/LaunchScreenAssets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /AutoLayout-iOS13/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /AutoLayout-iOS13/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /AutoLayout-iOS13/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 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UILaunchStoryboardName 33 | LaunchScreen 34 | UISceneConfigurationName 35 | Default Configuration 36 | UISceneDelegateClassName 37 | $(PRODUCT_MODULE_NAME).SceneDelegate 38 | UISceneStoryboardFile 39 | Main 40 | 41 | 42 | 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIMainStoryboardFile 47 | Main 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationLandscapeLeft 56 | UIInterfaceOrientationLandscapeRight 57 | UIInterfaceOrientationPortraitUpsideDown 58 | 59 | UISupportedInterfaceOrientations~ipad 60 | 61 | UIInterfaceOrientationPortrait 62 | UIInterfaceOrientationPortraitUpsideDown 63 | UIInterfaceOrientationLandscapeLeft 64 | UIInterfaceOrientationLandscapeRight 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /AutoLayout-iOS13/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // AutoLayout-iOS13 4 | // 5 | // Created by Angela Yu on 28/06/2019. 6 | // Copyright © 2019 The App Brewery. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 20 | guard let _ = (scene as? UIWindowScene) else { return } 21 | } 22 | 23 | func sceneDidDisconnect(_ scene: UIScene) { 24 | // Called as the scene is being released by the system. 25 | // This occurs shortly after the scene enters the background, or when its session is discarded. 26 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 28 | } 29 | 30 | func sceneDidBecomeActive(_ scene: UIScene) { 31 | // Called when the scene has moved from an inactive state to an active state. 32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 33 | } 34 | 35 | func sceneWillResignActive(_ scene: UIScene) { 36 | // Called when the scene will move from an active state to an inactive state. 37 | // This may occur due to temporary interruptions (ex. an incoming phone call). 38 | } 39 | 40 | func sceneWillEnterForeground(_ scene: UIScene) { 41 | // Called as the scene transitions from the background to the foreground. 42 | // Use this method to undo the changes made on entering the background. 43 | } 44 | 45 | func sceneDidEnterBackground(_ scene: UIScene) { 46 | // Called as the scene transitions from the foreground to the background. 47 | // Use this method to save data, release shared resources, and store enough scene-specific state information 48 | // to restore the scene back to its current state. 49 | } 50 | 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /AutoLayout-iOS13/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AutoLayout-iOS13 4 | // 5 | // Created by Angela Yu on 28/06/2019. 6 | // Copyright © 2019 The App Brewery. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | @IBOutlet weak var diceImageView1: UIImageView! 14 | @IBOutlet weak var diceImageView2: UIImageView! 15 | 16 | @IBAction func rollButtonPressed(_ sender: UIButton) { 17 | 18 | let allDice = [#imageLiteral(resourceName: "DiceOne"), #imageLiteral(resourceName: "DiceTwo"), #imageLiteral(resourceName: "DiceThree"), #imageLiteral(resourceName: "DiceFour"), #imageLiteral(resourceName: "DiceFive"), #imageLiteral(resourceName: "DiceSix")] 19 | 20 | diceImageView1.image = allDice[Int.random(in: 0...5)] 21 | diceImageView2.image = allDice[Int.random(in: 0...5)] 22 | 23 | } 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /Documentation/AppBreweryBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/Documentation/AppBreweryBanner.png -------------------------------------------------------------------------------- /Documentation/readme-end-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/AutoLayout-iOS13/492ff4df5cb74abb6cc0e7ae4f5b6ba49519a9f6/Documentation/readme-end-banner.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![App Brewery Banner](Documentation/AppBreweryBanner.png) 2 | 3 | # Auto Layout 4 | 5 | ## Our Goal 6 | 7 | At the moment, our app only looks good on the canvas dimension that we’ve selected. If you run the app on screens with different aspect ratios or try to turn it to landscape, the designs will look broken. 8 | 9 | Auto Layout allows us to set rules as to how we want our views to be displayed. Because mobile screens have different resolutions and sizes, we need these rules to tell the iPhone/iPad how it should layout all the elements in the storyboard onto the display. These rules allow our UI elements to be resized and positioned so that no matter which screen they are displayed on, they always look as the designer intended. 10 | 11 | 12 | ## What you will create 13 | 14 | Although Dicee is already pretty dicey, we get into problems when we try to rotate the screen to landscape or if we have a screen size that is not the same as the canvas. In this module, we’ll learn how to fix this and make our apps look exactly the way we want. 15 | 16 | ## What you will learn 17 | 18 | * How to add constraints and understanding how Auto Layout works. 19 | * How to Pin and Align elements. 20 | * How to create containers to configure advanced layouts. 21 | * How to debug auto layout errors. 22 | * Understanding what Xcode needs in order to correctly layout a design. 23 | * How to use Stack Views to create complex interfaces. 24 | 25 | 26 | 27 | 28 | >This is a companion project to The App Brewery's Complete App Development Bootcamp, check out the full course at [www.appbrewery.co](https://www.appbrewery.co/) 29 | 30 | ![End Banner](Documentation/readme-end-banner.png) 31 | 32 | --------------------------------------------------------------------------------