├── Quizzler-iOS13 ├── Assets.xcassets │ ├── Contents.json │ ├── Line.imageset │ │ ├── Line.png │ │ ├── Line@2x.png │ │ ├── Line@3x.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── 20.png │ │ ├── 29.png │ │ ├── 40.png │ │ ├── 50.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 60.png │ │ ├── 72.png │ │ ├── 76.png │ │ ├── 80.png │ │ ├── 87.png │ │ ├── 100.png │ │ ├── 1024.png │ │ ├── 114.png │ │ ├── 120.png │ │ ├── 144.png │ │ ├── 152.png │ │ ├── 167.png │ │ ├── 180.png │ │ └── Contents.json │ ├── Button.imageset │ │ ├── Button.png │ │ ├── Button@2x.png │ │ ├── Button@3x.png │ │ └── Contents.json │ ├── Rectangle.imageset │ │ ├── Rectangle.pdf │ │ └── Contents.json │ └── Background-Bubbles.imageset │ │ ├── Background-Bubbles.png │ │ ├── Background-Bubbles@2x.png │ │ ├── Background-Bubbles@3x.png │ │ └── Contents.json ├── Model │ ├── Question.swift │ └── QuizBrain.swift ├── Base.lproj │ └── LaunchScreen.storyboard ├── AppDelegate.swift ├── Controller │ └── ViewController.swift ├── Info.plist ├── SceneDelegate.swift └── View │ └── Base.lproj │ └── Main.storyboard ├── Documentation ├── AppBreweryBanner.png └── readme-end-banner.png ├── Quizzler-iOS13.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── .xcodesamplecode.plist ├── xcuserdata │ └── angelayu.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── project.pbxproj └── README.md /Quizzler-iOS13/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Documentation/AppBreweryBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Documentation/AppBreweryBanner.png -------------------------------------------------------------------------------- /Documentation/readme-end-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Documentation/readme-end-banner.png -------------------------------------------------------------------------------- /Quizzler-iOS13.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Line.imageset/Line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Line.imageset/Line.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/20.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/29.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/50.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/57.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/72.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/76.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Line.imageset/Line@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Line.imageset/Line@2x.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Line.imageset/Line@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Line.imageset/Line@3x.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/100.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/114.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/144.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/152.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/167.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Button.imageset/Button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Button.imageset/Button.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Button.imageset/Button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Button.imageset/Button@2x.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Button.imageset/Button@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Button.imageset/Button@3x.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Rectangle.imageset/Rectangle.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Rectangle.imageset/Rectangle.pdf -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Background-Bubbles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Background-Bubbles.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Background-Bubbles@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Background-Bubbles@2x.png -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Background-Bubbles@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbrewery/Quizzler-iOS13-Completed/HEAD/Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Background-Bubbles@3x.png -------------------------------------------------------------------------------- /Quizzler-iOS13.xcodeproj/.xcodesamplecode.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Quizzler-iOS13.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Quizzler-iOS13/Model/Question.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Question.swift 3 | // Quizzler-iOS13 4 | // 5 | // Created by Angela Yu on 07/08/2019. 6 | // Copyright © 2019 The App Brewery. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct Question { 12 | let text: String 13 | let answer: String 14 | 15 | init(q: String, a: String) { 16 | text = q 17 | answer = a 18 | } 19 | } 20 | 21 | 22 | -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Rectangle.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Rectangle.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Quizzler-iOS13.xcodeproj/xcuserdata/angelayu.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Quizzler-iOS13.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Line.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Line.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Line@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Line@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Button.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Button@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Button@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Quizzler-iOS13/Assets.xcassets/Background-Bubbles.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Background-Bubbles.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Background-Bubbles@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Background-Bubbles@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Quizzler-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 | -------------------------------------------------------------------------------- /Quizzler-iOS13/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Quizzler-iOS13 4 | // 5 | // Created by Angela Yu on 12/07/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 | -------------------------------------------------------------------------------- /Quizzler-iOS13/Controller/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Quizzler-iOS13 4 | // 5 | // Created by Angela Yu on 12/07/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 questionLabel: UILabel! 14 | @IBOutlet weak var progressBar: UIProgressView! 15 | @IBOutlet weak var trueButton: UIButton! 16 | @IBOutlet weak var falseButton: UIButton! 17 | @IBOutlet weak var scoreLabel: UILabel! 18 | 19 | var quizBrain = QuizBrain() 20 | 21 | override func viewDidLoad() { 22 | super.viewDidLoad() 23 | 24 | updateUI() 25 | } 26 | 27 | @IBAction func answerButtonPressed(_ sender: UIButton) { 28 | 29 | let userAnswer = sender.currentTitle! 30 | 31 | let userGotItRight = quizBrain.checkAnswer(userAnswer: userAnswer) 32 | 33 | if userGotItRight { 34 | sender.backgroundColor = UIColor.green 35 | } else { 36 | sender.backgroundColor = UIColor.red 37 | } 38 | 39 | quizBrain.nextQuestion() 40 | 41 | Timer.scheduledTimer(timeInterval: 0.2, target: self, selector: #selector(updateUI), userInfo: nil, repeats: false) 42 | } 43 | 44 | @objc func updateUI() { 45 | questionLabel.text = quizBrain.getQuestionText() 46 | progressBar.progress = quizBrain.getProgress() 47 | scoreLabel.text = "Score: \(quizBrain.getScore())" 48 | 49 | trueButton.backgroundColor = UIColor.clear 50 | falseButton.backgroundColor = UIColor.clear 51 | } 52 | 53 | } 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /Quizzler-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 | 58 | UISupportedInterfaceOrientations~ipad 59 | 60 | UIInterfaceOrientationPortrait 61 | UIInterfaceOrientationPortraitUpsideDown 62 | UIInterfaceOrientationLandscapeLeft 63 | UIInterfaceOrientationLandscapeRight 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /Quizzler-iOS13/Model/QuizBrain.swift: -------------------------------------------------------------------------------- 1 | // 2 | // QuizBrain.swift 3 | // Quizzler-iOS13 4 | // 5 | // Created by Angela Yu on 08/08/2019. 6 | // Copyright © 2019 The App Brewery. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct QuizBrain { 12 | 13 | var questionNumber = 0 14 | var score = 0 15 | 16 | let quiz = [ 17 | Question(q: "A slug's blood is green.", a: "True"), 18 | Question(q: "Approximately one quarter of human bones are in the feet.", a: "True"), 19 | Question(q: "The total surface area of two human lungs is approximately 70 square metres.", a: "True"), 20 | Question(q: "In West Virginia, USA, if you accidentally hit an animal with your car, you are free to take it home to eat.", a: "True"), 21 | Question(q: "In London, UK, if you happen to die in the House of Parliament, you are technically entitled to a state funeral, because the building is considered too sacred a place.", a: "False"), 22 | Question(q: "It is illegal to pee in the Ocean in Portugal.", a: "True"), 23 | Question(q: "You can lead a cow down stairs but not up stairs.", a: "False"), 24 | Question(q: "Google was originally called 'Backrub'.", a: "True"), 25 | Question(q: "Buzz Aldrin's mother's maiden name was 'Moon'.", a: "True"), 26 | Question(q: "The loudest sound produced by any animal is 188 decibels. That animal is the African Elephant.", a: "False"), 27 | Question(q: "No piece of square dry paper can be folded in half more than 7 times.", a: "False"), 28 | Question(q: "Chocolate affects a dog's heart and nervous system; a few ounces are enough to kill a small dog.", a: "True") 29 | ] 30 | 31 | func getQuestionText() -> String { 32 | return quiz[questionNumber].text 33 | } 34 | 35 | func getProgress() -> Float { 36 | return Float(questionNumber) / Float(quiz.count) 37 | } 38 | 39 | mutating func getScore() -> Int { 40 | return score 41 | } 42 | 43 | mutating func nextQuestion() { 44 | 45 | if questionNumber + 1 < quiz.count { 46 | questionNumber += 1 47 | } else { 48 | questionNumber = 0 49 | } 50 | } 51 | 52 | mutating func checkAnswer(userAnswer: String) -> Bool { 53 | if userAnswer == quiz[questionNumber].answer { 54 | score += 1 55 | return true 56 | } else { 57 | return false 58 | } 59 | } 60 | } 61 | 62 | -------------------------------------------------------------------------------- /Quizzler-iOS13/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // Quizzler-iOS13 4 | // 5 | // Created by Angela Yu on 12/07/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 | -------------------------------------------------------------------------------- /Quizzler-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" : "20x20", 71 | "idiom" : "ipad", 72 | "filename" : "20.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "20x20", 77 | "idiom" : "ipad", 78 | "filename" : "40.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "29x29", 83 | "idiom" : "ipad", 84 | "filename" : "29.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "29x29", 89 | "idiom" : "ipad", 90 | "filename" : "58.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "40x40", 95 | "idiom" : "ipad", 96 | "filename" : "40.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "40x40", 101 | "idiom" : "ipad", 102 | "filename" : "80.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "50x50", 107 | "idiom" : "ipad", 108 | "filename" : "50.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "50x50", 113 | "idiom" : "ipad", 114 | "filename" : "100.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "72x72", 119 | "idiom" : "ipad", 120 | "filename" : "72.png", 121 | "scale" : "1x" 122 | }, 123 | { 124 | "size" : "72x72", 125 | "idiom" : "ipad", 126 | "filename" : "144.png", 127 | "scale" : "2x" 128 | }, 129 | { 130 | "size" : "76x76", 131 | "idiom" : "ipad", 132 | "filename" : "76.png", 133 | "scale" : "1x" 134 | }, 135 | { 136 | "size" : "76x76", 137 | "idiom" : "ipad", 138 | "filename" : "152.png", 139 | "scale" : "2x" 140 | }, 141 | { 142 | "size" : "83.5x83.5", 143 | "idiom" : "ipad", 144 | "filename" : "167.png", 145 | "scale" : "2x" 146 | }, 147 | { 148 | "size" : "1024x1024", 149 | "idiom" : "ios-marketing", 150 | "filename" : "1024.png", 151 | "scale" : "1x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ![App Brewery Banner](Documentation/AppBreweryBanner.png) 3 | 4 | # Quizzler 5 | 6 | ## Our Goal 7 | 8 | The goal of this tutorial is to take you one step further in your journey of becoming an app developer. We are going to introduce you to the holy grail of mobile design patterns: the Model View Controller (MVC) pattern. A design pattern is simply a repeatable and optimised solution to a common software problem and you’ll learn more about this when use in the tutorial. 9 | 10 | ## What you will create 11 | 12 | You will program a trivia quiz app. If you have another field of expertise such as law or medicine, you’ll be glad to know that multiple choice question apps are one of the most popular types of educational apps on the App Store! 13 | 14 | ## What you will learn 15 | 16 | * What is a design pattern and how is it used in programming. 17 | * How to use the Model-View-Controller or MVC pattern for app development. 18 | * Swift structures and functions with outputs. 19 | * Learn about Object Oriented Programming. 20 | * Learn to use UIAlertControllers to display popups to the user. 21 | * How to refactor code and stay organised. 22 | * Learn about object initialisation. 23 | * How to programmatically change UI elements such as Labels and Views. 24 | 25 | 26 | ## Default Quiz 27 | 28 | ``` 29 | Question(q: "A slug's blood is green.", a: "True"), 30 | Question(q: "Approximately one quarter of human bones are in the feet.", a: "True"), 31 | Question(q: "The total surface area of two human lungs is approximately 70 square metres.", a: "True"), 32 | Question(q: "In West Virginia, USA, if you accidentally hit an animal with your car, you are free to take it home to eat.", a: "True"), 33 | Question(q: "In London, UK, if you happen to die in the House of Parliament, you are technically entitled to a state funeral, because the building is considered too sacred a place.", a: "False"), 34 | Question(q: "It is illegal to pee in the Ocean in Portugal.", a: "True"), 35 | Question(q: "You can lead a cow down stairs but not up stairs.", a: "False"), 36 | Question(q: "Google was originally called 'Backrub'.", a: "True"), 37 | Question(q: "Buzz Aldrin's mother's maiden name was 'Moon'.", a: "True"), 38 | Question(q: "The loudest sound produced by any animal is 188 decibels. That animal is the African Elephant.", a: "False"), 39 | Question(q: "No piece of square dry paper can be folded in half more than 7 times.", a: "False"), 40 | Question(q: "Chocolate affects a dog's heart and nervous system; a few ounces are enough to kill a small dog.", a: "True") 41 | ``` 42 | 43 | ## Multiple Choice Quiz 44 | 45 | ``` 46 | Question(q: "Which is the largest organ in the human body?", a: ["Heart", "Skin", "Large Intestine"], correctAnswer: "Skin"), 47 | Question(q: "Five dollars is worth how many nickels?", a: ["25", "50", "100"], correctAnswer: "100"), 48 | Question(q: "What do the letters in the GMT time zone stand for?", a: ["Global Meridian Time", "Greenwich Mean Time", "General Median Time"], correctAnswer: "Greenwich Mean Time"), 49 | Question(q: "What is the French word for 'hat'?", a: ["Chapeau", "Écharpe", "Bonnet"], correctAnswer: "Chapeau"), 50 | Question(q: "In past times, what would a gentleman keep in his fob pocket?", a: ["Notebook", "Handkerchief", "Watch"], correctAnswer: "Watch"), 51 | Question(q: "How would one say goodbye in Spanish?", a: ["Au Revoir", "Adiós", "Salir"], correctAnswer: "Adiós"), 52 | Question(q: "Which of these colours is NOT featured in the logo for Google?", a: ["Green", "Orange", "Blue"], correctAnswer: "Orange"), 53 | Question(q: "What alcoholic drink is made from molasses?", a: ["Rum", "Whisky", "Gin"], correctAnswer: "Rum"), 54 | Question(q: "What type of animal was Harambe?", a: ["Panda", "Gorilla", "Crocodile"], correctAnswer: "Gorilla"), 55 | Question(q: "Where is Tasmania located?", a: ["Indonesia", "Australia", "Scotland"], correctAnswer: "Australia") 56 | ``` 57 | 58 | 59 | >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/) 60 | 61 | ![End Banner](Documentation/readme-end-banner.png) 62 | -------------------------------------------------------------------------------- /Quizzler-iOS13/View/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 | 33 | 39 | 53 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /Quizzler-iOS13.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | AD4BDE4A22D878BA005BA4CC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD4BDE4922D878BA005BA4CC /* AppDelegate.swift */; }; 11 | AD4BDE4C22D878BA005BA4CC /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD4BDE4B22D878BA005BA4CC /* SceneDelegate.swift */; }; 12 | AD4BDE4E22D878BA005BA4CC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD4BDE4D22D878BA005BA4CC /* ViewController.swift */; }; 13 | AD4BDE5122D878BA005BA4CC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD4BDE4F22D878BA005BA4CC /* Main.storyboard */; }; 14 | AD4BDE5322D878BC005BA4CC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD4BDE5222D878BC005BA4CC /* Assets.xcassets */; }; 15 | AD4BDE5622D878BC005BA4CC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD4BDE5422D878BC005BA4CC /* LaunchScreen.storyboard */; }; 16 | AD7631B622F9851900C6E71B /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = AD7631B522F9851900C6E71B /* README.md */; }; 17 | AD7631C122FB176100C6E71B /* Question.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD7631C022FB176100C6E71B /* Question.swift */; }; 18 | AD7631C622FC227F00C6E71B /* QuizBrain.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD7631C522FC227F00C6E71B /* QuizBrain.swift */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | AD4BDE4622D878BA005BA4CC /* Quizzler-iOS13.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Quizzler-iOS13.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | AD4BDE4922D878BA005BA4CC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | AD4BDE4B22D878BA005BA4CC /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 25 | AD4BDE4D22D878BA005BA4CC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 26 | AD4BDE5022D878BA005BA4CC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | AD4BDE5222D878BC005BA4CC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | AD4BDE5522D878BC005BA4CC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | AD4BDE5722D878BC005BA4CC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | AD7631B522F9851900C6E71B /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 31 | AD7631C022FB176100C6E71B /* Question.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Question.swift; sourceTree = ""; }; 32 | AD7631C522FC227F00C6E71B /* QuizBrain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuizBrain.swift; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | AD4BDE4322D878BA005BA4CC /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXFrameworksBuildPhase section */ 44 | 45 | /* Begin PBXGroup section */ 46 | AD4BDE3D22D878BA005BA4CC = { 47 | isa = PBXGroup; 48 | children = ( 49 | AD7631B522F9851900C6E71B /* README.md */, 50 | AD4BDE4822D878BA005BA4CC /* Quizzler-iOS13 */, 51 | AD4BDE4722D878BA005BA4CC /* Products */, 52 | ); 53 | sourceTree = ""; 54 | }; 55 | AD4BDE4722D878BA005BA4CC /* Products */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | AD4BDE4622D878BA005BA4CC /* Quizzler-iOS13.app */, 59 | ); 60 | name = Products; 61 | sourceTree = ""; 62 | }; 63 | AD4BDE4822D878BA005BA4CC /* Quizzler-iOS13 */ = { 64 | isa = PBXGroup; 65 | children = ( 66 | AD4BDE4922D878BA005BA4CC /* AppDelegate.swift */, 67 | AD4BDE4B22D878BA005BA4CC /* SceneDelegate.swift */, 68 | AD7631C222FC1F7500C6E71B /* Model */, 69 | AD7631C322FC201E00C6E71B /* View */, 70 | AD7631C422FC206D00C6E71B /* Controller */, 71 | AD4BDE5222D878BC005BA4CC /* Assets.xcassets */, 72 | AD4BDE5422D878BC005BA4CC /* LaunchScreen.storyboard */, 73 | AD4BDE5722D878BC005BA4CC /* Info.plist */, 74 | ); 75 | path = "Quizzler-iOS13"; 76 | sourceTree = ""; 77 | }; 78 | AD7631C222FC1F7500C6E71B /* Model */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | AD7631C022FB176100C6E71B /* Question.swift */, 82 | AD7631C522FC227F00C6E71B /* QuizBrain.swift */, 83 | ); 84 | path = Model; 85 | sourceTree = ""; 86 | }; 87 | AD7631C322FC201E00C6E71B /* View */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | AD4BDE4F22D878BA005BA4CC /* Main.storyboard */, 91 | ); 92 | path = View; 93 | sourceTree = ""; 94 | }; 95 | AD7631C422FC206D00C6E71B /* Controller */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | AD4BDE4D22D878BA005BA4CC /* ViewController.swift */, 99 | ); 100 | path = Controller; 101 | sourceTree = ""; 102 | }; 103 | /* End PBXGroup section */ 104 | 105 | /* Begin PBXNativeTarget section */ 106 | AD4BDE4522D878BA005BA4CC /* Quizzler-iOS13 */ = { 107 | isa = PBXNativeTarget; 108 | buildConfigurationList = AD4BDE5A22D878BC005BA4CC /* Build configuration list for PBXNativeTarget "Quizzler-iOS13" */; 109 | buildPhases = ( 110 | AD4BDE4222D878BA005BA4CC /* Sources */, 111 | AD4BDE4322D878BA005BA4CC /* Frameworks */, 112 | AD4BDE4422D878BA005BA4CC /* Resources */, 113 | ); 114 | buildRules = ( 115 | ); 116 | dependencies = ( 117 | ); 118 | name = "Quizzler-iOS13"; 119 | productName = "Quizzler-iOS13"; 120 | productReference = AD4BDE4622D878BA005BA4CC /* Quizzler-iOS13.app */; 121 | productType = "com.apple.product-type.application"; 122 | }; 123 | /* End PBXNativeTarget section */ 124 | 125 | /* Begin PBXProject section */ 126 | AD4BDE3E22D878BA005BA4CC /* Project object */ = { 127 | isa = PBXProject; 128 | attributes = { 129 | LastSwiftUpdateCheck = 1100; 130 | LastUpgradeCheck = 1100; 131 | ORGANIZATIONNAME = "The App Brewery"; 132 | TargetAttributes = { 133 | AD4BDE4522D878BA005BA4CC = { 134 | CreatedOnToolsVersion = 11.0; 135 | }; 136 | }; 137 | }; 138 | buildConfigurationList = AD4BDE4122D878BA005BA4CC /* Build configuration list for PBXProject "Quizzler-iOS13" */; 139 | compatibilityVersion = "Xcode 9.3"; 140 | developmentRegion = en; 141 | hasScannedForEncodings = 0; 142 | knownRegions = ( 143 | en, 144 | Base, 145 | ); 146 | mainGroup = AD4BDE3D22D878BA005BA4CC; 147 | productRefGroup = AD4BDE4722D878BA005BA4CC /* Products */; 148 | projectDirPath = ""; 149 | projectRoot = ""; 150 | targets = ( 151 | AD4BDE4522D878BA005BA4CC /* Quizzler-iOS13 */, 152 | ); 153 | }; 154 | /* End PBXProject section */ 155 | 156 | /* Begin PBXResourcesBuildPhase section */ 157 | AD4BDE4422D878BA005BA4CC /* Resources */ = { 158 | isa = PBXResourcesBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | AD4BDE5622D878BC005BA4CC /* LaunchScreen.storyboard in Resources */, 162 | AD4BDE5322D878BC005BA4CC /* Assets.xcassets in Resources */, 163 | AD7631B622F9851900C6E71B /* README.md in Resources */, 164 | AD4BDE5122D878BA005BA4CC /* Main.storyboard in Resources */, 165 | ); 166 | runOnlyForDeploymentPostprocessing = 0; 167 | }; 168 | /* End PBXResourcesBuildPhase section */ 169 | 170 | /* Begin PBXSourcesBuildPhase section */ 171 | AD4BDE4222D878BA005BA4CC /* Sources */ = { 172 | isa = PBXSourcesBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | AD7631C622FC227F00C6E71B /* QuizBrain.swift in Sources */, 176 | AD4BDE4E22D878BA005BA4CC /* ViewController.swift in Sources */, 177 | AD7631C122FB176100C6E71B /* Question.swift in Sources */, 178 | AD4BDE4A22D878BA005BA4CC /* AppDelegate.swift in Sources */, 179 | AD4BDE4C22D878BA005BA4CC /* SceneDelegate.swift in Sources */, 180 | ); 181 | runOnlyForDeploymentPostprocessing = 0; 182 | }; 183 | /* End PBXSourcesBuildPhase section */ 184 | 185 | /* Begin PBXVariantGroup section */ 186 | AD4BDE4F22D878BA005BA4CC /* Main.storyboard */ = { 187 | isa = PBXVariantGroup; 188 | children = ( 189 | AD4BDE5022D878BA005BA4CC /* Base */, 190 | ); 191 | name = Main.storyboard; 192 | sourceTree = ""; 193 | }; 194 | AD4BDE5422D878BC005BA4CC /* LaunchScreen.storyboard */ = { 195 | isa = PBXVariantGroup; 196 | children = ( 197 | AD4BDE5522D878BC005BA4CC /* Base */, 198 | ); 199 | name = LaunchScreen.storyboard; 200 | sourceTree = ""; 201 | }; 202 | /* End PBXVariantGroup section */ 203 | 204 | /* Begin XCBuildConfiguration section */ 205 | AD4BDE5822D878BC005BA4CC /* Debug */ = { 206 | isa = XCBuildConfiguration; 207 | buildSettings = { 208 | ALWAYS_SEARCH_USER_PATHS = NO; 209 | CLANG_ANALYZER_NONNULL = YES; 210 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 211 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 212 | CLANG_CXX_LIBRARY = "libc++"; 213 | CLANG_ENABLE_MODULES = YES; 214 | CLANG_ENABLE_OBJC_ARC = YES; 215 | CLANG_ENABLE_OBJC_WEAK = YES; 216 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 217 | CLANG_WARN_BOOL_CONVERSION = YES; 218 | CLANG_WARN_COMMA = YES; 219 | CLANG_WARN_CONSTANT_CONVERSION = YES; 220 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 221 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 222 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 223 | CLANG_WARN_EMPTY_BODY = YES; 224 | CLANG_WARN_ENUM_CONVERSION = YES; 225 | CLANG_WARN_INFINITE_RECURSION = YES; 226 | CLANG_WARN_INT_CONVERSION = YES; 227 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 228 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 229 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 230 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 231 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 232 | CLANG_WARN_STRICT_PROTOTYPES = YES; 233 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 234 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 235 | CLANG_WARN_UNREACHABLE_CODE = YES; 236 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 237 | COPY_PHASE_STRIP = NO; 238 | DEBUG_INFORMATION_FORMAT = dwarf; 239 | ENABLE_STRICT_OBJC_MSGSEND = YES; 240 | ENABLE_TESTABILITY = YES; 241 | GCC_C_LANGUAGE_STANDARD = gnu11; 242 | GCC_DYNAMIC_NO_PIC = NO; 243 | GCC_NO_COMMON_BLOCKS = YES; 244 | GCC_OPTIMIZATION_LEVEL = 0; 245 | GCC_PREPROCESSOR_DEFINITIONS = ( 246 | "DEBUG=1", 247 | "$(inherited)", 248 | ); 249 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 250 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 251 | GCC_WARN_UNDECLARED_SELECTOR = YES; 252 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 253 | GCC_WARN_UNUSED_FUNCTION = YES; 254 | GCC_WARN_UNUSED_VARIABLE = YES; 255 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 256 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 257 | MTL_FAST_MATH = YES; 258 | ONLY_ACTIVE_ARCH = YES; 259 | SDKROOT = iphoneos; 260 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 261 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 262 | }; 263 | name = Debug; 264 | }; 265 | AD4BDE5922D878BC005BA4CC /* Release */ = { 266 | isa = XCBuildConfiguration; 267 | buildSettings = { 268 | ALWAYS_SEARCH_USER_PATHS = NO; 269 | CLANG_ANALYZER_NONNULL = YES; 270 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 271 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 272 | CLANG_CXX_LIBRARY = "libc++"; 273 | CLANG_ENABLE_MODULES = YES; 274 | CLANG_ENABLE_OBJC_ARC = YES; 275 | CLANG_ENABLE_OBJC_WEAK = YES; 276 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 277 | CLANG_WARN_BOOL_CONVERSION = YES; 278 | CLANG_WARN_COMMA = YES; 279 | CLANG_WARN_CONSTANT_CONVERSION = YES; 280 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 281 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 282 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 283 | CLANG_WARN_EMPTY_BODY = YES; 284 | CLANG_WARN_ENUM_CONVERSION = YES; 285 | CLANG_WARN_INFINITE_RECURSION = YES; 286 | CLANG_WARN_INT_CONVERSION = YES; 287 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 288 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 289 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 290 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 291 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 292 | CLANG_WARN_STRICT_PROTOTYPES = YES; 293 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 294 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 295 | CLANG_WARN_UNREACHABLE_CODE = YES; 296 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 297 | COPY_PHASE_STRIP = NO; 298 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 299 | ENABLE_NS_ASSERTIONS = NO; 300 | ENABLE_STRICT_OBJC_MSGSEND = YES; 301 | GCC_C_LANGUAGE_STANDARD = gnu11; 302 | GCC_NO_COMMON_BLOCKS = YES; 303 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 304 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 305 | GCC_WARN_UNDECLARED_SELECTOR = YES; 306 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 307 | GCC_WARN_UNUSED_FUNCTION = YES; 308 | GCC_WARN_UNUSED_VARIABLE = YES; 309 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 310 | MTL_ENABLE_DEBUG_INFO = NO; 311 | MTL_FAST_MATH = YES; 312 | SDKROOT = iphoneos; 313 | SWIFT_COMPILATION_MODE = wholemodule; 314 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 315 | VALIDATE_PRODUCT = YES; 316 | }; 317 | name = Release; 318 | }; 319 | AD4BDE5B22D878BC005BA4CC /* Debug */ = { 320 | isa = XCBuildConfiguration; 321 | buildSettings = { 322 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 323 | CODE_SIGN_STYLE = Automatic; 324 | INFOPLIST_FILE = "Quizzler-iOS13/Info.plist"; 325 | LD_RUNPATH_SEARCH_PATHS = ( 326 | "$(inherited)", 327 | "@executable_path/Frameworks", 328 | ); 329 | PRODUCT_BUNDLE_IDENTIFIER = "co.appbrewery.Quizzler-iOS13"; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | SWIFT_VERSION = 5.0; 332 | TARGETED_DEVICE_FAMILY = "1,2"; 333 | }; 334 | name = Debug; 335 | }; 336 | AD4BDE5C22D878BC005BA4CC /* Release */ = { 337 | isa = XCBuildConfiguration; 338 | buildSettings = { 339 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 340 | CODE_SIGN_STYLE = Automatic; 341 | INFOPLIST_FILE = "Quizzler-iOS13/Info.plist"; 342 | LD_RUNPATH_SEARCH_PATHS = ( 343 | "$(inherited)", 344 | "@executable_path/Frameworks", 345 | ); 346 | PRODUCT_BUNDLE_IDENTIFIER = "co.appbrewery.Quizzler-iOS13"; 347 | PRODUCT_NAME = "$(TARGET_NAME)"; 348 | SWIFT_VERSION = 5.0; 349 | TARGETED_DEVICE_FAMILY = "1,2"; 350 | }; 351 | name = Release; 352 | }; 353 | /* End XCBuildConfiguration section */ 354 | 355 | /* Begin XCConfigurationList section */ 356 | AD4BDE4122D878BA005BA4CC /* Build configuration list for PBXProject "Quizzler-iOS13" */ = { 357 | isa = XCConfigurationList; 358 | buildConfigurations = ( 359 | AD4BDE5822D878BC005BA4CC /* Debug */, 360 | AD4BDE5922D878BC005BA4CC /* Release */, 361 | ); 362 | defaultConfigurationIsVisible = 0; 363 | defaultConfigurationName = Release; 364 | }; 365 | AD4BDE5A22D878BC005BA4CC /* Build configuration list for PBXNativeTarget "Quizzler-iOS13" */ = { 366 | isa = XCConfigurationList; 367 | buildConfigurations = ( 368 | AD4BDE5B22D878BC005BA4CC /* Debug */, 369 | AD4BDE5C22D878BC005BA4CC /* Release */, 370 | ); 371 | defaultConfigurationIsVisible = 0; 372 | defaultConfigurationName = Release; 373 | }; 374 | /* End XCConfigurationList section */ 375 | }; 376 | rootObject = AD4BDE3E22D878BA005BA4CC /* Project object */; 377 | } 378 | --------------------------------------------------------------------------------