├── Aaron ├── jump.mp3 ├── win.mp3 ├── theme.mp3 ├── Assets.xcassets │ ├── Contents.json │ ├── .DS_Store │ ├── brick.imageset │ │ ├── brick.png │ │ └── Contents.json │ ├── mario0.imageset │ │ ├── mario0.png │ │ └── Contents.json │ ├── mario1.imageset │ │ ├── mario1.png │ │ └── Contents.json │ ├── mario2.imageset │ │ ├── mario2.png │ │ └── Contents.json │ ├── mario3.imageset │ │ ├── mario3.png │ │ └── Contents.json │ ├── confetti.imageset │ │ ├── confetti.png │ │ └── Contents.json │ ├── panther.imageset │ │ ├── panther.png │ │ └── Contents.json │ ├── AccentColor.colorset │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── AppDelegate.swift ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── SceneDelegate.swift ├── Info.plist ├── SAConfettiView.swift └── ViewController.swift ├── README.md ├── Aaron.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── project.pbxproj ├── LICENSE └── .gitignore /Aaron/jump.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/jump.mp3 -------------------------------------------------------------------------------- /Aaron/win.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/win.mp3 -------------------------------------------------------------------------------- /Aaron/theme.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/theme.mp3 -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/.DS_Store -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/brick.imageset/brick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/brick.imageset/brick.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mario-read-aloud 2 | 3 | This is an iPad app I made for my son. Please see [the accompanying blog post](https://tyler.io/digital-heirlooms/). 4 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario0.imageset/mario0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/mario0.imageset/mario0.png -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario1.imageset/mario1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/mario1.imageset/mario1.png -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario2.imageset/mario2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/mario2.imageset/mario2.png -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario3.imageset/mario3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/mario3.imageset/mario3.png -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/confetti.imageset/confetti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/confetti.imageset/confetti.png -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/panther.imageset/panther.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/mario-read-aloud/master/Aaron/Assets.xcassets/panther.imageset/panther.png -------------------------------------------------------------------------------- /Aaron.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Aaron.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/brick.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "brick.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "mario0.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "mario1.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "mario2.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/mario3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "mario3.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/panther.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "panther.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/confetti.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "confetti.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Tyler Hall 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Aaron/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Aaron 4 | // 5 | // Created by Tyler Hall on 9/26/20. 6 | // 7 | 8 | import UIKit 9 | 10 | @main 11 | class AppDelegate: UIResponder, UIApplicationDelegate { 12 | 13 | 14 | 15 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 16 | // Override point for customization after application launch. 17 | return true 18 | } 19 | 20 | // MARK: UISceneSession Lifecycle 21 | 22 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 23 | // Called when a new scene session is being created. 24 | // Use this method to select a configuration to create the new scene with. 25 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 26 | } 27 | 28 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 29 | // Called when the user discards a scene session. 30 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 31 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 32 | } 33 | 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Aaron/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 | -------------------------------------------------------------------------------- /Aaron/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Aaron/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // Aaron 4 | // 5 | // Created by Tyler Hall on 9/26/20. 6 | // 7 | 8 | import UIKit 9 | 10 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 11 | 12 | var window: UIWindow? 13 | 14 | 15 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 16 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 17 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 18 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 19 | guard let _ = (scene as? UIWindowScene) else { return } 20 | } 21 | 22 | func sceneDidDisconnect(_ scene: UIScene) { 23 | // Called as the scene is being released by the system. 24 | // This occurs shortly after the scene enters the background, or when its session is discarded. 25 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 26 | // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). 27 | } 28 | 29 | func sceneDidBecomeActive(_ scene: UIScene) { 30 | // Called when the scene has moved from an inactive state to an active state. 31 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 32 | } 33 | 34 | func sceneWillResignActive(_ scene: UIScene) { 35 | // Called when the scene will move from an active state to an inactive state. 36 | // This may occur due to temporary interruptions (ex. an incoming phone call). 37 | } 38 | 39 | func sceneWillEnterForeground(_ scene: UIScene) { 40 | // Called as the scene transitions from the background to the foreground. 41 | // Use this method to undo the changes made on entering the background. 42 | } 43 | 44 | func sceneDidEnterBackground(_ scene: UIScene) { 45 | // Called as the scene transitions from the foreground to the background. 46 | // Use this method to save data, release shared resources, and store enough scene-specific state information 47 | // to restore the scene back to its current state. 48 | } 49 | 50 | 51 | } 52 | 53 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | # Package.pins 42 | # Package.resolved 43 | # *.xcodeproj 44 | # 45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 46 | # hence it is not needed unless you have added a package configuration file to your project 47 | # .swiftpm 48 | 49 | .build/ 50 | 51 | # CocoaPods 52 | # 53 | # We recommend against adding the Pods directory to your .gitignore. However 54 | # you should judge for yourself, the pros and cons are mentioned at: 55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 56 | # 57 | # Pods/ 58 | # 59 | # Add this line if you want to avoid checking in source code from the Xcode workspace 60 | # *.xcworkspace 61 | 62 | # Carthage 63 | # 64 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 65 | # Carthage/Checkouts 66 | 67 | Carthage/Build/ 68 | 69 | # Accio dependency management 70 | Dependencies/ 71 | .accio/ 72 | 73 | # fastlane 74 | # 75 | # It is recommended to not store the screenshots in the git repo. 76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 77 | # For more information about the recommended setup visit: 78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 79 | 80 | fastlane/report.xml 81 | fastlane/Preview.html 82 | fastlane/screenshots/**/*.png 83 | fastlane/test_output 84 | 85 | # Code Injection 86 | # 87 | # After new code Injection tools there's a generated folder /iOSInjectionProject 88 | # https://github.com/johnno1962/injectionforxcode 89 | 90 | iOSInjectionProject/ 91 | -------------------------------------------------------------------------------- /Aaron/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 | NSMicrophoneUsageDescription 20 | To record your beautiful voice and translate it into boring text 21 | CFBundleVersion 22 | 1 23 | NSSpeechRecognitionUsageDescription 24 | Convert your voice to text for easy translation 25 | LSRequiresIPhoneOS 26 | 27 | UIApplicationSceneManifest 28 | 29 | UIApplicationSupportsMultipleScenes 30 | 31 | UISceneConfigurations 32 | 33 | UIWindowSceneSessionRoleApplication 34 | 35 | 36 | UISceneConfigurationName 37 | Default Configuration 38 | UISceneDelegateClassName 39 | $(PRODUCT_MODULE_NAME).SceneDelegate 40 | UISceneStoryboardFile 41 | Main 42 | 43 | 44 | 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | UILaunchStoryboardName 49 | LaunchScreen 50 | UIMainStoryboardFile 51 | Main 52 | UIRequiredDeviceCapabilities 53 | 54 | armv7 55 | 56 | UISupportedInterfaceOrientations 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationLandscapeLeft 60 | UIInterfaceOrientationLandscapeRight 61 | 62 | UISupportedInterfaceOrientations~ipad 63 | 64 | UIInterfaceOrientationPortrait 65 | UIInterfaceOrientationPortraitUpsideDown 66 | UIInterfaceOrientationLandscapeLeft 67 | UIInterfaceOrientationLandscapeRight 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /Aaron/SAConfettiView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SAConfettiView.swift 3 | // Pods 4 | // 5 | // Created by Sudeep Agarwal on 12/14/15. 6 | // 7 | // 8 | 9 | import UIKit 10 | import QuartzCore 11 | 12 | public class SAConfettiView: UIView { 13 | 14 | public enum ConfettiType { 15 | case confetti 16 | case triangle 17 | case star 18 | case diamond 19 | case image(UIImage) 20 | } 21 | 22 | var emitter: CAEmitterLayer! 23 | public var colors: [UIColor]! 24 | public var intensity: Float! 25 | public var type: ConfettiType! 26 | private var active: Bool! 27 | 28 | required public init?(coder aDecoder: NSCoder) { 29 | super.init(coder: aDecoder) 30 | setup() 31 | startConfetti() 32 | } 33 | 34 | public override init(frame: CGRect) { 35 | super.init(frame: frame) 36 | setup() 37 | startConfetti() 38 | } 39 | 40 | func setup() { 41 | colors = [UIColor(red: 0.95, green: 0.40, blue: 0.27, alpha: 1.0), 42 | UIColor(red: 1.00, green: 0.78, blue: 0.36, alpha: 1.0), 43 | UIColor(red: 0.48, green: 0.78, blue: 0.64, alpha: 1.0), 44 | UIColor(red: 0.30, green: 0.76, blue: 0.85, alpha: 1.0), 45 | UIColor(red: 0.58, green: 0.39, blue: 0.55, alpha: 1.0)] 46 | intensity = 0.5 47 | type = .confetti 48 | active = false 49 | } 50 | 51 | public func startConfetti() { 52 | emitter = CAEmitterLayer() 53 | 54 | emitter.emitterPosition = CGPoint(x: frame.size.width / 2.0, y: 0) 55 | emitter.emitterShape = CAEmitterLayerEmitterShape.line 56 | emitter.emitterSize = CGSize(width: frame.size.width, height: 1) 57 | 58 | var cells = [CAEmitterCell]() 59 | for color in colors { 60 | cells.append(confettiWithColor(color: color)) 61 | } 62 | 63 | emitter.emitterCells = cells 64 | layer.addSublayer(emitter) 65 | active = true 66 | } 67 | 68 | public func stopConfetti() { 69 | emitter?.birthRate = 0 70 | active = false 71 | } 72 | 73 | func imageForType(type: ConfettiType) -> UIImage? { 74 | 75 | var fileName: String! 76 | 77 | switch type { 78 | case .confetti: 79 | fileName = "confetti" 80 | case .triangle: 81 | fileName = "triangle" 82 | case .star: 83 | fileName = "star" 84 | case .diamond: 85 | fileName = "diamond" 86 | case let .image(customImage): 87 | return customImage 88 | } 89 | 90 | return UIImage(named: fileName) 91 | } 92 | 93 | func confettiWithColor(color: UIColor) -> CAEmitterCell { 94 | let confetti = CAEmitterCell() 95 | confetti.birthRate = 6.0 * intensity 96 | confetti.lifetime = 14.0 * intensity 97 | confetti.lifetimeRange = 0 98 | confetti.color = color.cgColor 99 | confetti.velocity = CGFloat(350.0 * intensity) 100 | confetti.velocityRange = CGFloat(80.0 * intensity) 101 | confetti.emissionLongitude = CGFloat(Double.pi) 102 | confetti.emissionRange = CGFloat(Double.pi) 103 | confetti.spin = CGFloat(3.5 * intensity) 104 | confetti.spinRange = CGFloat(4.0 * intensity) 105 | confetti.scaleRange = CGFloat(intensity) 106 | confetti.scaleSpeed = CGFloat(-0.1 * intensity) 107 | confetti.contents = imageForType(type: .confetti)!.cgImage 108 | return confetti 109 | } 110 | 111 | public func isActive() -> Bool { 112 | return self.active 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /Aaron/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 | 34 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 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 | -------------------------------------------------------------------------------- /Aaron/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Aaron 4 | // 5 | // Created by Tyler Hall on 9/26/20. 6 | // 7 | 8 | import UIKit 9 | import AVFoundation 10 | import Speech 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var wordCountLabel: UILabel! 15 | @IBOutlet weak var wordsLabel: UILabel! 16 | @IBOutlet weak var button: UIButton! 17 | @IBOutlet weak var marioImageView: UIImageView! 18 | @IBOutlet weak var marioXDistance: NSLayoutConstraint! 19 | @IBOutlet weak var marioYDistance: NSLayoutConstraint! 20 | @IBOutlet weak var confettiView: SAConfettiView! 21 | 22 | enum GameState { 23 | case NoSession 24 | case Playing 25 | case Won 26 | case Ended 27 | } 28 | 29 | var gameState: GameState = .NoSession { 30 | didSet { 31 | updateMarioFrame() 32 | switch gameState { 33 | case .NoSession: 34 | button.setTitle("Go!", for: .normal) 35 | finalWords = "" 36 | tempWords = "" 37 | marioXDistance.constant = 0 38 | marioYDistance.constant = 0 39 | jumpCount = 1 40 | confettiView.stopConfetti() 41 | confettiView.isHidden = true 42 | marioXDistance.constant = 0 43 | didWinTimer?.invalidate() 44 | marioYDistance.constant = 0 45 | break 46 | case .Playing: 47 | button.setTitle("Stop", for: .normal) 48 | finalWords = "" 49 | tempWords = "" 50 | jumpCount = 1 51 | startListening() 52 | confettiView.stopConfetti() 53 | confettiView.isHidden = true 54 | marioXDistance.constant = 0 55 | marioYDistance.constant = 0 56 | didWinTimer?.invalidate() 57 | break 58 | case .Won: 59 | tempWords = "" 60 | finalWords = "" 61 | guard oldValue != .Won else { return } 62 | stopListening() 63 | play(name: "win") 64 | button.setTitle("You Win!", for: .normal) 65 | confettiView.startConfetti() 66 | confettiView.isHidden = false 67 | celebrate() 68 | break 69 | case .Ended: 70 | button.setTitle("Play Again", for: .normal) 71 | wordsLabel.text = "" 72 | stopListening() 73 | break 74 | } 75 | } 76 | } 77 | 78 | let queue = OperationQueue() 79 | var player: AVAudioPlayer? 80 | 81 | var wordCountGoal: Int = 100 82 | var finalWords = "" { 83 | didSet { 84 | guard gameState != .Won else { return } 85 | updateMarioFrame() 86 | updateWordCountLabel() 87 | wordsLabel.text = allWords 88 | } 89 | } 90 | var tempWords = "" { 91 | didSet { 92 | guard gameState != .Won else { return } 93 | updateMarioFrame() 94 | updateWordCountLabel() 95 | wordsLabel.text = allWords 96 | } 97 | } 98 | var allWords: String { 99 | return (finalWords + " " + tempWords).trimmingCharacters(in: .whitespaces) 100 | } 101 | var wordCount: Int { 102 | return allWords.components(separatedBy: .whitespaces).count - 1 103 | } 104 | 105 | var jumpCount = 1 106 | var isJumping = false 107 | 108 | var idleTimer: Timer? 109 | var didWinTimer: Timer? 110 | 111 | let speechRecognizer = SFSpeechRecognizer()! 112 | var audioEngine: AVAudioEngine? 113 | var request: SFSpeechAudioBufferRecognitionRequest? 114 | var recognitionTask: SFSpeechRecognitionTask? 115 | 116 | override func viewDidLoad() { 117 | super.viewDidLoad() 118 | speechRecognizer.delegate = self 119 | gameState = .NoSession 120 | 121 | let tgr = UITapGestureRecognizer(target: self, action: #selector(choosewordCountGoal)) 122 | tgr.numberOfTouchesRequired = 3 123 | tgr.numberOfTapsRequired = 3 124 | view.addGestureRecognizer(tgr) 125 | } 126 | 127 | @objc func choosewordCountGoal() { 128 | let ac = UIAlertController(title: "Word Count Goal?", message: nil, preferredStyle: .alert) 129 | ac.addTextField { [weak self] (textfield) in 130 | guard let self = self else { return } 131 | textfield.text = "\(self.wordCountGoal)" 132 | } 133 | ac.addAction(UIAlertAction(title: "OK", style: .default, handler: { [weak self] (action) in 134 | guard let self = self else { return } 135 | self.wordCountGoal = Int(ac.textFields?.first!.text ?? "100") ?? 100 136 | self.updateWordCountLabel() 137 | })) 138 | present(ac, animated: true, completion: nil) 139 | } 140 | 141 | func startListening() { 142 | request = SFSpeechAudioBufferRecognitionRequest() 143 | guard let request = request else { return } 144 | request.requiresOnDeviceRecognition = true 145 | 146 | audioEngine = AVAudioEngine() 147 | 148 | let recordingFormat = audioEngine?.inputNode.outputFormat(forBus: 0) 149 | audioEngine?.inputNode.installTap(onBus: 0, bufferSize: 1024, format: recordingFormat) { (buffer, _) in 150 | request.append(buffer) 151 | } 152 | audioEngine?.prepare() 153 | 154 | do { 155 | try audioEngine?.start() 156 | } catch { 157 | print(error) 158 | return 159 | } 160 | 161 | recognitionTask = speechRecognizer.recognitionTask(with: request, resultHandler: { [weak self] (result, error) in 162 | guard let self = self else { return } 163 | guard let result = result else { 164 | print(error ?? "Error") 165 | return 166 | } 167 | 168 | self.idleTimer?.invalidate() 169 | 170 | let words = result.bestTranscription.formattedString.lowercased() 171 | 172 | let j = words.components(separatedBy: "jump").count 173 | if j > self.jumpCount { 174 | self.jumpCount = j 175 | self.jump() 176 | } 177 | 178 | if result.isFinal { 179 | self.finalWords += " " + words 180 | self.tempWords = "" 181 | } else if words.count < self.tempWords.count { 182 | self.finalWords += " " + self.tempWords 183 | self.tempWords = words 184 | self.startIdleTimer() 185 | } else { 186 | self.tempWords = words 187 | self.startIdleTimer() 188 | } 189 | }) 190 | } 191 | 192 | func startIdleTimer() { 193 | idleTimer = Timer.scheduledTimer(withTimeInterval: 1.5, repeats: false, block: { [weak self] (timer) in 194 | self?.marioImageView.image = UIImage(named: "mario0") 195 | self?.wordsLabel.text = "" 196 | }) 197 | } 198 | 199 | func stopListening() { 200 | audioEngine?.stop() 201 | request?.endAudio() 202 | audioEngine?.inputNode.removeTap(onBus: 0) 203 | } 204 | 205 | func updateWordCountLabel() { 206 | switch gameState { 207 | case .NoSession: 208 | wordCountLabel.text = "" 209 | break 210 | case .Playing: 211 | let count = wordCountGoal - wordCount 212 | if count <= 0 { 213 | gameState = .Won 214 | wordCountLabel.text = "🥳🎉" 215 | } else { 216 | wordCountLabel.text = "\(count)" 217 | } 218 | break 219 | case .Won: 220 | wordCountLabel.text = "🥳🎉" 221 | break 222 | case .Ended: 223 | break 224 | } 225 | } 226 | 227 | func updateMarioFrame() { 228 | switch gameState { 229 | case .NoSession: 230 | marioImageView.image = UIImage(named: "mario0") 231 | break 232 | case .Playing: 233 | let frame = (wordCount % 3) + 1 234 | marioImageView.image = UIImage(named: "mario\(frame)") 235 | let fraction = CGFloat(wordCount) / CGFloat(wordCountGoal) 236 | let maxWidth = view.bounds.size.width - marioImageView.bounds.size.width 237 | marioXDistance.constant = min(maxWidth, maxWidth * fraction) 238 | UIView.animate(withDuration: 0.07) { [weak self] in 239 | self?.view.layoutIfNeeded() 240 | } 241 | case .Won: 242 | marioImageView.image = UIImage(named: "mario0") 243 | break 244 | case .Ended: 245 | marioImageView.image = UIImage(named: "mario0") 246 | break 247 | } 248 | } 249 | 250 | func play(name: String) { 251 | if let url = Bundle.main.url(forResource: name, withExtension: "mp3") { 252 | do { 253 | player = try AVAudioPlayer(contentsOf: url, fileTypeHint: AVFileType.mp3.rawValue) 254 | player?.play() 255 | } catch let error { 256 | print(error.localizedDescription) 257 | } 258 | } 259 | } 260 | 261 | func jump(quiet: Bool = false) { 262 | if !quiet { 263 | play(name: "jump") 264 | } 265 | 266 | isJumping = true 267 | marioYDistance.constant = 100 268 | UIView.animate(withDuration: 0.25, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: .curveEaseOut) { [weak self] in 269 | self?.view.layoutIfNeeded() 270 | } completion: { [weak self] (finished) in 271 | self?.marioYDistance.constant = 0 272 | UIView.animate(withDuration: 0.25, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: .curveEaseIn) { [weak self] in 273 | self?.view.layoutIfNeeded() 274 | } completion: { (finished) in 275 | self?.isJumping = false 276 | } 277 | } 278 | } 279 | 280 | func celebrate() { 281 | didWinTimer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { [weak self] (timer) in 282 | guard let self = self else { return } 283 | guard !self.isJumping else { return } 284 | self.jump(quiet: true) 285 | }) 286 | } 287 | } 288 | 289 | extension ViewController { 290 | 291 | @IBAction func buttonTapped(_ sender: AnyObject?) { 292 | switch gameState { 293 | case .NoSession: 294 | gameState = .Playing 295 | break 296 | case .Playing: 297 | gameState = .Ended 298 | break 299 | case .Won: 300 | gameState = .Ended 301 | case .Ended: 302 | gameState = .Playing 303 | break 304 | } 305 | } 306 | } 307 | 308 | extension ViewController: SFSpeechRecognizerDelegate, SFSpeechRecognitionTaskDelegate { 309 | 310 | func speechRecognitionTask(_ task: SFSpeechRecognitionTask, didFinishSuccessfully successfully: Bool) { 311 | 312 | } 313 | 314 | func speechRecognitionTaskWasCancelled(_ task: SFSpeechRecognitionTask) { 315 | 316 | } 317 | } 318 | -------------------------------------------------------------------------------- /Aaron.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C6756564251FC75600256372 /* SAConfettiView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6756563251FC75600256372 /* SAConfettiView.swift */; }; 11 | C6FADEC8251F7CEC00C7337F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6FADEC7251F7CEC00C7337F /* AppDelegate.swift */; }; 12 | C6FADECA251F7CEC00C7337F /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6FADEC9251F7CEC00C7337F /* SceneDelegate.swift */; }; 13 | C6FADECC251F7CEC00C7337F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6FADECB251F7CEC00C7337F /* ViewController.swift */; }; 14 | C6FADECF251F7CEC00C7337F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C6FADECD251F7CEC00C7337F /* Main.storyboard */; }; 15 | C6FADED1251F7CEE00C7337F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C6FADED0251F7CEE00C7337F /* Assets.xcassets */; }; 16 | C6FADED4251F7CEE00C7337F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C6FADED2251F7CEE00C7337F /* LaunchScreen.storyboard */; }; 17 | C6FADEDF251F91D100C7337F /* theme.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = C6FADEDC251F91D100C7337F /* theme.mp3 */; }; 18 | C6FADEE0251F91D100C7337F /* jump.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = C6FADEDD251F91D100C7337F /* jump.mp3 */; }; 19 | C6FADEE1251F91D100C7337F /* win.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = C6FADEDE251F91D100C7337F /* win.mp3 */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | C6756563251FC75600256372 /* SAConfettiView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SAConfettiView.swift; sourceTree = ""; }; 24 | C6FADEC4251F7CEC00C7337F /* Aaron.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Aaron.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | C6FADEC7251F7CEC00C7337F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 26 | C6FADEC9251F7CEC00C7337F /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 27 | C6FADECB251F7CEC00C7337F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 28 | C6FADECE251F7CEC00C7337F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | C6FADED0251F7CEE00C7337F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 30 | C6FADED3251F7CEE00C7337F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 31 | C6FADED5251F7CEE00C7337F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | C6FADEDC251F91D100C7337F /* theme.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = theme.mp3; sourceTree = ""; }; 33 | C6FADEDD251F91D100C7337F /* jump.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = jump.mp3; sourceTree = ""; }; 34 | C6FADEDE251F91D100C7337F /* win.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = win.mp3; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | C6FADEC1251F7CEC00C7337F /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | C6FADEBB251F7CEC00C7337F = { 49 | isa = PBXGroup; 50 | children = ( 51 | C6FADEC6251F7CEC00C7337F /* Aaron */, 52 | C6FADEC5251F7CEC00C7337F /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | C6FADEC5251F7CEC00C7337F /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | C6FADEC4251F7CEC00C7337F /* Aaron.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | C6FADEC6251F7CEC00C7337F /* Aaron */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | C6FADEC7251F7CEC00C7337F /* AppDelegate.swift */, 68 | C6FADEC9251F7CEC00C7337F /* SceneDelegate.swift */, 69 | C6FADECB251F7CEC00C7337F /* ViewController.swift */, 70 | C6756563251FC75600256372 /* SAConfettiView.swift */, 71 | C6FADEDD251F91D100C7337F /* jump.mp3 */, 72 | C6FADEDC251F91D100C7337F /* theme.mp3 */, 73 | C6FADEDE251F91D100C7337F /* win.mp3 */, 74 | C6FADECD251F7CEC00C7337F /* Main.storyboard */, 75 | C6FADED0251F7CEE00C7337F /* Assets.xcassets */, 76 | C6FADED2251F7CEE00C7337F /* LaunchScreen.storyboard */, 77 | C6FADED5251F7CEE00C7337F /* Info.plist */, 78 | ); 79 | path = Aaron; 80 | sourceTree = ""; 81 | }; 82 | /* End PBXGroup section */ 83 | 84 | /* Begin PBXNativeTarget section */ 85 | C6FADEC3251F7CEC00C7337F /* Aaron */ = { 86 | isa = PBXNativeTarget; 87 | buildConfigurationList = C6FADED8251F7CEE00C7337F /* Build configuration list for PBXNativeTarget "Aaron" */; 88 | buildPhases = ( 89 | C6FADEC0251F7CEC00C7337F /* Sources */, 90 | C6FADEC1251F7CEC00C7337F /* Frameworks */, 91 | C6FADEC2251F7CEC00C7337F /* Resources */, 92 | ); 93 | buildRules = ( 94 | ); 95 | dependencies = ( 96 | ); 97 | name = Aaron; 98 | productName = Aaron; 99 | productReference = C6FADEC4251F7CEC00C7337F /* Aaron.app */; 100 | productType = "com.apple.product-type.application"; 101 | }; 102 | /* End PBXNativeTarget section */ 103 | 104 | /* Begin PBXProject section */ 105 | C6FADEBC251F7CEC00C7337F /* Project object */ = { 106 | isa = PBXProject; 107 | attributes = { 108 | LastSwiftUpdateCheck = 1200; 109 | LastUpgradeCheck = 1200; 110 | TargetAttributes = { 111 | C6FADEC3251F7CEC00C7337F = { 112 | CreatedOnToolsVersion = 12.0.1; 113 | }; 114 | }; 115 | }; 116 | buildConfigurationList = C6FADEBF251F7CEC00C7337F /* Build configuration list for PBXProject "Aaron" */; 117 | compatibilityVersion = "Xcode 9.3"; 118 | developmentRegion = en; 119 | hasScannedForEncodings = 0; 120 | knownRegions = ( 121 | en, 122 | Base, 123 | ); 124 | mainGroup = C6FADEBB251F7CEC00C7337F; 125 | productRefGroup = C6FADEC5251F7CEC00C7337F /* Products */; 126 | projectDirPath = ""; 127 | projectRoot = ""; 128 | targets = ( 129 | C6FADEC3251F7CEC00C7337F /* Aaron */, 130 | ); 131 | }; 132 | /* End PBXProject section */ 133 | 134 | /* Begin PBXResourcesBuildPhase section */ 135 | C6FADEC2251F7CEC00C7337F /* Resources */ = { 136 | isa = PBXResourcesBuildPhase; 137 | buildActionMask = 2147483647; 138 | files = ( 139 | C6FADED4251F7CEE00C7337F /* LaunchScreen.storyboard in Resources */, 140 | C6FADEE0251F91D100C7337F /* jump.mp3 in Resources */, 141 | C6FADED1251F7CEE00C7337F /* Assets.xcassets in Resources */, 142 | C6FADEE1251F91D100C7337F /* win.mp3 in Resources */, 143 | C6FADEDF251F91D100C7337F /* theme.mp3 in Resources */, 144 | C6FADECF251F7CEC00C7337F /* Main.storyboard in Resources */, 145 | ); 146 | runOnlyForDeploymentPostprocessing = 0; 147 | }; 148 | /* End PBXResourcesBuildPhase section */ 149 | 150 | /* Begin PBXSourcesBuildPhase section */ 151 | C6FADEC0251F7CEC00C7337F /* Sources */ = { 152 | isa = PBXSourcesBuildPhase; 153 | buildActionMask = 2147483647; 154 | files = ( 155 | C6FADECC251F7CEC00C7337F /* ViewController.swift in Sources */, 156 | C6FADEC8251F7CEC00C7337F /* AppDelegate.swift in Sources */, 157 | C6756564251FC75600256372 /* SAConfettiView.swift in Sources */, 158 | C6FADECA251F7CEC00C7337F /* SceneDelegate.swift in Sources */, 159 | ); 160 | runOnlyForDeploymentPostprocessing = 0; 161 | }; 162 | /* End PBXSourcesBuildPhase section */ 163 | 164 | /* Begin PBXVariantGroup section */ 165 | C6FADECD251F7CEC00C7337F /* Main.storyboard */ = { 166 | isa = PBXVariantGroup; 167 | children = ( 168 | C6FADECE251F7CEC00C7337F /* Base */, 169 | ); 170 | name = Main.storyboard; 171 | sourceTree = ""; 172 | }; 173 | C6FADED2251F7CEE00C7337F /* LaunchScreen.storyboard */ = { 174 | isa = PBXVariantGroup; 175 | children = ( 176 | C6FADED3251F7CEE00C7337F /* Base */, 177 | ); 178 | name = LaunchScreen.storyboard; 179 | sourceTree = ""; 180 | }; 181 | /* End PBXVariantGroup section */ 182 | 183 | /* Begin XCBuildConfiguration section */ 184 | C6FADED6251F7CEE00C7337F /* Debug */ = { 185 | isa = XCBuildConfiguration; 186 | buildSettings = { 187 | ALWAYS_SEARCH_USER_PATHS = NO; 188 | CLANG_ANALYZER_NONNULL = YES; 189 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 190 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 191 | CLANG_CXX_LIBRARY = "libc++"; 192 | CLANG_ENABLE_MODULES = YES; 193 | CLANG_ENABLE_OBJC_ARC = YES; 194 | CLANG_ENABLE_OBJC_WEAK = YES; 195 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 196 | CLANG_WARN_BOOL_CONVERSION = YES; 197 | CLANG_WARN_COMMA = YES; 198 | CLANG_WARN_CONSTANT_CONVERSION = YES; 199 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 200 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 201 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 202 | CLANG_WARN_EMPTY_BODY = YES; 203 | CLANG_WARN_ENUM_CONVERSION = YES; 204 | CLANG_WARN_INFINITE_RECURSION = YES; 205 | CLANG_WARN_INT_CONVERSION = YES; 206 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 207 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 208 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 209 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 210 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 211 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 212 | CLANG_WARN_STRICT_PROTOTYPES = YES; 213 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 214 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 215 | CLANG_WARN_UNREACHABLE_CODE = YES; 216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 217 | COPY_PHASE_STRIP = NO; 218 | DEBUG_INFORMATION_FORMAT = dwarf; 219 | ENABLE_STRICT_OBJC_MSGSEND = YES; 220 | ENABLE_TESTABILITY = YES; 221 | GCC_C_LANGUAGE_STANDARD = gnu11; 222 | GCC_DYNAMIC_NO_PIC = NO; 223 | GCC_NO_COMMON_BLOCKS = YES; 224 | GCC_OPTIMIZATION_LEVEL = 0; 225 | GCC_PREPROCESSOR_DEFINITIONS = ( 226 | "DEBUG=1", 227 | "$(inherited)", 228 | ); 229 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 230 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 231 | GCC_WARN_UNDECLARED_SELECTOR = YES; 232 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 233 | GCC_WARN_UNUSED_FUNCTION = YES; 234 | GCC_WARN_UNUSED_VARIABLE = YES; 235 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 236 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 237 | MTL_FAST_MATH = YES; 238 | ONLY_ACTIVE_ARCH = YES; 239 | SDKROOT = iphoneos; 240 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 241 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 242 | }; 243 | name = Debug; 244 | }; 245 | C6FADED7251F7CEE00C7337F /* Release */ = { 246 | isa = XCBuildConfiguration; 247 | buildSettings = { 248 | ALWAYS_SEARCH_USER_PATHS = NO; 249 | CLANG_ANALYZER_NONNULL = YES; 250 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 252 | CLANG_CXX_LIBRARY = "libc++"; 253 | CLANG_ENABLE_MODULES = YES; 254 | CLANG_ENABLE_OBJC_ARC = YES; 255 | CLANG_ENABLE_OBJC_WEAK = YES; 256 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 257 | CLANG_WARN_BOOL_CONVERSION = YES; 258 | CLANG_WARN_COMMA = YES; 259 | CLANG_WARN_CONSTANT_CONVERSION = YES; 260 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 263 | CLANG_WARN_EMPTY_BODY = YES; 264 | CLANG_WARN_ENUM_CONVERSION = YES; 265 | CLANG_WARN_INFINITE_RECURSION = YES; 266 | CLANG_WARN_INT_CONVERSION = YES; 267 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 268 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 269 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 270 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 271 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 272 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 273 | CLANG_WARN_STRICT_PROTOTYPES = YES; 274 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 275 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 276 | CLANG_WARN_UNREACHABLE_CODE = YES; 277 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 278 | COPY_PHASE_STRIP = NO; 279 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 280 | ENABLE_NS_ASSERTIONS = NO; 281 | ENABLE_STRICT_OBJC_MSGSEND = YES; 282 | GCC_C_LANGUAGE_STANDARD = gnu11; 283 | GCC_NO_COMMON_BLOCKS = YES; 284 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 285 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 286 | GCC_WARN_UNDECLARED_SELECTOR = YES; 287 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 288 | GCC_WARN_UNUSED_FUNCTION = YES; 289 | GCC_WARN_UNUSED_VARIABLE = YES; 290 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 291 | MTL_ENABLE_DEBUG_INFO = NO; 292 | MTL_FAST_MATH = YES; 293 | SDKROOT = iphoneos; 294 | SWIFT_COMPILATION_MODE = wholemodule; 295 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 296 | VALIDATE_PRODUCT = YES; 297 | }; 298 | name = Release; 299 | }; 300 | C6FADED9251F7CEE00C7337F /* Debug */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 304 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 305 | CODE_SIGN_STYLE = Automatic; 306 | DEVELOPMENT_TEAM = 3A6K89K388; 307 | INFOPLIST_FILE = Aaron/Info.plist; 308 | LD_RUNPATH_SEARCH_PATHS = ( 309 | "$(inherited)", 310 | "@executable_path/Frameworks", 311 | ); 312 | PRODUCT_BUNDLE_IDENTIFIER = io.tyler.Aaron; 313 | PRODUCT_NAME = "$(TARGET_NAME)"; 314 | SWIFT_VERSION = 5.0; 315 | TARGETED_DEVICE_FAMILY = "1,2"; 316 | }; 317 | name = Debug; 318 | }; 319 | C6FADEDA251F7CEE00C7337F /* Release */ = { 320 | isa = XCBuildConfiguration; 321 | buildSettings = { 322 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 323 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 324 | CODE_SIGN_STYLE = Automatic; 325 | DEVELOPMENT_TEAM = 3A6K89K388; 326 | INFOPLIST_FILE = Aaron/Info.plist; 327 | LD_RUNPATH_SEARCH_PATHS = ( 328 | "$(inherited)", 329 | "@executable_path/Frameworks", 330 | ); 331 | PRODUCT_BUNDLE_IDENTIFIER = io.tyler.Aaron; 332 | PRODUCT_NAME = "$(TARGET_NAME)"; 333 | SWIFT_VERSION = 5.0; 334 | TARGETED_DEVICE_FAMILY = "1,2"; 335 | }; 336 | name = Release; 337 | }; 338 | /* End XCBuildConfiguration section */ 339 | 340 | /* Begin XCConfigurationList section */ 341 | C6FADEBF251F7CEC00C7337F /* Build configuration list for PBXProject "Aaron" */ = { 342 | isa = XCConfigurationList; 343 | buildConfigurations = ( 344 | C6FADED6251F7CEE00C7337F /* Debug */, 345 | C6FADED7251F7CEE00C7337F /* Release */, 346 | ); 347 | defaultConfigurationIsVisible = 0; 348 | defaultConfigurationName = Release; 349 | }; 350 | C6FADED8251F7CEE00C7337F /* Build configuration list for PBXNativeTarget "Aaron" */ = { 351 | isa = XCConfigurationList; 352 | buildConfigurations = ( 353 | C6FADED9251F7CEE00C7337F /* Debug */, 354 | C6FADEDA251F7CEE00C7337F /* Release */, 355 | ); 356 | defaultConfigurationIsVisible = 0; 357 | defaultConfigurationName = Release; 358 | }; 359 | /* End XCConfigurationList section */ 360 | }; 361 | rootObject = C6FADEBC251F7CEC00C7337F /* Project object */; 362 | } 363 | --------------------------------------------------------------------------------