├── todoapp.gif ├── DubDubDo ├── Supporting Files │ ├── Assets.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ └── Base.lproj │ │ └── LaunchScreen.storyboard ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json ├── Views │ ├── TodoCell.swift │ └── TodoListView.swift ├── Persistence │ ├── PersistenceManager.swift │ └── TodoOperations.swift ├── Model │ └── Todo.xcdatamodeld │ │ └── Todo.xcdatamodel │ │ └── contents ├── AppDelegate.swift ├── Info.plist └── SceneDelegate.swift ├── README.md ├── .gitignore └── DubDubDo.xcodeproj └── project.pbxproj /todoapp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenMcMillan/Dub-Dub-Do/HEAD/todoapp.gif -------------------------------------------------------------------------------- /DubDubDo/Supporting Files/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /DubDubDo/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /DubDubDo/Views/TodoCell.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | struct TodoCell: View { 4 | @ObservedObject var todo: Todo 5 | var body: some View { 6 | HStack { 7 | Text(todo.todoDescription ?? "") 8 | .foregroundColor(.black) 9 | .strikethrough(todo.isComplete, color: .black) 10 | Spacer() 11 | if !todo.isComplete && todo.isImportant{ 12 | Image(systemName: "exclamationmark.triangle.fill").foregroundColor(Color.red).imageScale(.large) 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DubDubDo/Persistence/PersistenceManager.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import CoreData 3 | 4 | class PersistenceManager { 5 | lazy var managedObjectContext: NSManagedObjectContext = { self.persistentContainer.viewContext }() 6 | 7 | lazy var persistentContainer: NSPersistentContainer = { 8 | let container = NSPersistentContainer(name: "Todo") 9 | container.loadPersistentStores { (persistentStoreDescription, error) in 10 | if let error = error { 11 | fatalError(error.localizedDescription) 12 | } 13 | } 14 | return container 15 | }() 16 | } 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dub Dub Do - A sample TODO List Application in SwiftUI 2 | > Updated for Xcode 11.5 3 | 4 | This is a basic app that lets you create a list of todos, mark them as important or complete and then delete them. Simple. 5 | 6 |

7 | 8 |

9 | 10 | This project was made for fun to try out Swift UI and see how it interacts with other layers of the application now that we don't have view controllers. With that in mind, this is by no means the correct way to do things in SwiftUI (I'm only open sourcing at the request of a few folks on Twitter). In fact it's probably far from that given that this technology is so new. We're all still learning. This project is merely my attempt to put something together based on the ideas put accross in WWDC videos and in the documentation. 11 | -------------------------------------------------------------------------------- /DubDubDo/Model/Todo.xcdatamodeld/Todo.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /DubDubDo/Persistence/TodoOperations.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TodoOperations.swift 3 | // DubDubDo 4 | // 5 | // Created by Stephen McMillan on 13/06/2020. 6 | // Copyright © 2020 Stephen McMillan. All rights reserved. 7 | // 8 | 9 | import CoreData 10 | 11 | struct TodoOperations { 12 | 13 | public static func create(_ description: String, using managedObjectContext: NSManagedObjectContext) { 14 | let newTodo = Todo(context: managedObjectContext) 15 | newTodo.id = UUID() 16 | newTodo.todoDescription = description 17 | newTodo.dateCreated = Date() 18 | newTodo.isComplete = false 19 | newTodo.isImportant = false 20 | 21 | saveChanges(using: managedObjectContext) 22 | } 23 | 24 | public static func delete(todo: Todo, using managedObjectContext: NSManagedObjectContext) { 25 | managedObjectContext.delete(todo) 26 | saveChanges(using: managedObjectContext) 27 | } 28 | 29 | public static func toggleIsImportant(_ todo: Todo?, using managedObjectContext: NSManagedObjectContext) { 30 | todo!.isImportant = !todo!.isImportant 31 | saveChanges(using: managedObjectContext) 32 | } 33 | 34 | public static func toggleIsComplete(_ todo: Todo?, using managedObjectContext: NSManagedObjectContext) { 35 | todo!.isComplete = !todo!.isComplete 36 | saveChanges(using: managedObjectContext) 37 | } 38 | 39 | fileprivate static func saveChanges(using managedObjectContext: NSManagedObjectContext) { 40 | guard managedObjectContext.hasChanges else { return } 41 | do { 42 | try managedObjectContext.save() 43 | } catch { 44 | fatalError(error.localizedDescription) 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /DubDubDo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // DubDubDo 4 | // 5 | // Created by Stephen McMillan on 10/06/2019. 6 | // Copyright © 2019 Stephen McMillan. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 15 | // Override point for customization after application launch. 16 | return true 17 | } 18 | 19 | func applicationWillTerminate(_ application: UIApplication) { 20 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 21 | } 22 | 23 | // MARK: UISceneSession Lifecycle 24 | 25 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 26 | // Called when a new scene session is being created. 27 | // Use this method to select a configuration to create the new scene with. 28 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 29 | } 30 | 31 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 32 | // Called when the user discards a scene session. 33 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 34 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 35 | } 36 | 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /DubDubDo/Supporting Files/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 | -------------------------------------------------------------------------------- /DubDubDo/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /DubDubDo/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 | 39 | 40 | 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UISupportedInterfaceOrientations~ipad 55 | 56 | UIInterfaceOrientationPortrait 57 | UIInterfaceOrientationPortraitUpsideDown 58 | UIInterfaceOrientationLandscapeLeft 59 | UIInterfaceOrientationLandscapeRight 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /DubDubDo/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import SwiftUI 3 | import CoreData 4 | 5 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 6 | 7 | var window: UIWindow? 8 | 9 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 10 | 11 | // Pass the Managed Object Context from the container into the Environment 12 | let moc = PersistenceManager().managedObjectContext 13 | 14 | let todoListView = TodoListView() 15 | .environment(\.managedObjectContext, moc) 16 | 17 | // Use a UIHostingController as window root view controller. 18 | if let windowScene = scene as? UIWindowScene { 19 | let window = UIWindow(windowScene: windowScene) 20 | window.rootViewController = UIHostingController(rootView: todoListView) 21 | self.window = window 22 | window.makeKeyAndVisible() 23 | } 24 | } 25 | 26 | func sceneDidDisconnect(_ scene: UIScene) { 27 | // Called as the scene is being released by the system. 28 | // This occurs shortly after the scene enters the background, or when its session is discarded. 29 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 30 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 31 | } 32 | 33 | func sceneDidBecomeActive(_ scene: UIScene) { 34 | // Called when the scene has moved from an inactive state to an active state. 35 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 36 | } 37 | 38 | func sceneWillResignActive(_ scene: UIScene) { 39 | // Called when the scene will move from an active state to an inactive state. 40 | // This may occur due to temporary interruptions (ex. an incoming phone call). 41 | } 42 | 43 | func sceneWillEnterForeground(_ scene: UIScene) { 44 | // Called as the scene transitions from the background to the foreground. 45 | // Use this method to undo the changes made on entering the background. 46 | } 47 | 48 | func sceneDidEnterBackground(_ scene: UIScene) { 49 | // Called as the scene transitions from the foreground to the background. 50 | // Use this method to save data, release shared resources, and store enough scene-specific state information 51 | // to restore the scene back to its current state. 52 | } 53 | 54 | 55 | } 56 | 57 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/swift,xcode 3 | # Edit at https://www.gitignore.io/?templates=swift,xcode 4 | 5 | ### Swift ### 6 | # Xcode 7 | # 8 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 9 | 10 | ## Build generated 11 | build/ 12 | DerivedData/ 13 | 14 | ## Various settings 15 | *.pbxuser 16 | !default.pbxuser 17 | *.mode1v3 18 | !default.mode1v3 19 | *.mode2v3 20 | !default.mode2v3 21 | *.perspectivev3 22 | !default.perspectivev3 23 | xcuserdata/ 24 | 25 | ## Other 26 | *.moved-aside 27 | *.xccheckout 28 | *.xcscmblueprint 29 | 30 | ## Obj-C/Swift specific 31 | *.hmap 32 | *.ipa 33 | *.dSYM.zip 34 | *.dSYM 35 | 36 | ## Playgrounds 37 | timeline.xctimeline 38 | playground.xcworkspace 39 | 40 | # Swift Package Manager 41 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 42 | # Packages/ 43 | # Package.pins 44 | # Package.resolved 45 | .build/ 46 | 47 | # CocoaPods 48 | # We recommend against adding the Pods directory to your .gitignore. However 49 | # you should judge for yourself, the pros and cons are mentioned at: 50 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 51 | # Pods/ 52 | # Add this line if you want to avoid checking in source code from the Xcode workspace 53 | # *.xcworkspace 54 | 55 | # Carthage 56 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 57 | # Carthage/Checkouts 58 | 59 | Carthage/Build 60 | 61 | # fastlane 62 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 63 | # screenshots whenever they are needed. 64 | # For more information about the recommended setup visit: 65 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 66 | 67 | fastlane/report.xml 68 | fastlane/Preview.html 69 | fastlane/screenshots/**/*.png 70 | fastlane/test_output 71 | 72 | # Code Injection 73 | # After new code Injection tools there's a generated folder /iOSInjectionProject 74 | # https://github.com/johnno1962/injectionforxcode 75 | 76 | iOSInjectionProject/ 77 | 78 | ### Xcode ### 79 | # Xcode 80 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 81 | 82 | ## User settings 83 | 84 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 85 | 86 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 87 | 88 | ### Xcode Patch ### 89 | *.xcodeproj/* 90 | !*.xcodeproj/project.pbxproj 91 | !*.xcodeproj/xcshareddata/ 92 | !*.xcworkspace/contents.xcworkspacedata 93 | /*.gcno 94 | **/xcshareddata/WorkspaceSettings.xcsettings 95 | 96 | # End of https://www.gitignore.io/api/swift,xcode 97 | -------------------------------------------------------------------------------- /DubDubDo/Views/TodoListView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import CoreData 3 | 4 | struct TodoListView : View { 5 | 6 | // MARK: - Core Data 7 | static let dateSortDescriptor = NSSortDescriptor(key: "dateCreated", ascending: false) 8 | 9 | @Environment(\.managedObjectContext) var managedObjectContext 10 | @FetchRequest(entity: Todo.entity(), 11 | sortDescriptors: [dateSortDescriptor], 12 | predicate: NSPredicate(format: "isComplete == false")) var todos: FetchedResults 13 | @FetchRequest(entity: Todo.entity(), 14 | sortDescriptors: [dateSortDescriptor], 15 | predicate: NSPredicate(format: "isComplete == true")) var completedTodos: FetchedResults 16 | 17 | // MARK: - View State 18 | @State var selectedTodo: Todo? = nil 19 | @State var newTodo: String = "" 20 | @State var showingSheet = false 21 | 22 | var body: some View { 23 | 24 | NavigationView { 25 | List { 26 | // The various cell types could be extracted. 27 | Section(header: Text("Add")) { 28 | HStack { 29 | TextField("Buy Groceries...", text: $newTodo) 30 | 31 | if self.newTodo.count > 0 { 32 | Button(action: { 33 | TodoOperations.create(self.newTodo, using: self.managedObjectContext) 34 | self.newTodo = "" 35 | }) { 36 | Image(systemName: "plus.circle.fill") 37 | .foregroundColor(Color.green).imageScale(.large) 38 | } 39 | } 40 | } 41 | } 42 | 43 | Section(header: Text("In Progress")) { 44 | ForEach(todos, id: \.id) { todo in 45 | Button(action: { 46 | self.selectedTodo = todo 47 | self.showingSheet = true 48 | }) { 49 | TodoCell(todo: todo) 50 | } 51 | } 52 | .onDelete(perform: deleteTodos(at:)) 53 | } 54 | 55 | Section(header: Text("Completed")) { 56 | ForEach(completedTodos, id: \.id) { completedTodo in 57 | TodoCell(todo: completedTodo) 58 | } 59 | .onDelete(perform: deleteCompletedTodos(at:)) 60 | } 61 | } 62 | .listStyle(GroupedListStyle()) 63 | .navigationBarTitle(Text("Todos")) 64 | .navigationBarItems(trailing: EditButton()) 65 | } 66 | .actionSheet(isPresented: $showingSheet, content: { 67 | ActionSheet( 68 | title: Text("Todo Actions"), 69 | message: nil, 70 | buttons: [ 71 | ActionSheet.Button.default(Text((self.selectedTodo?.isImportant ?? false) ? "Unflag" : "Flag")) { 72 | TodoOperations.toggleIsImportant(self.selectedTodo, using: self.managedObjectContext) 73 | self.showingSheet = false 74 | }, ActionSheet.Button.default(Text("Mark as \((self.selectedTodo?.isComplete ?? false) ? "Incomplete" : "Complete")")) { 75 | TodoOperations.toggleIsComplete(self.selectedTodo, using: self.managedObjectContext) 76 | self.showingSheet = false 77 | }, ActionSheet.Button.cancel({ 78 | self.showingSheet = false 79 | })]) 80 | }) 81 | } 82 | 83 | func deleteTodos(at indexSet: IndexSet) { 84 | indexSet.forEach { TodoOperations.delete(todo: todos[$0], using: self.managedObjectContext) } 85 | } 86 | 87 | func deleteCompletedTodos(at indexSet: IndexSet) { 88 | indexSet.forEach { TodoOperations.delete(todo: completedTodos[$0], using: self.managedObjectContext) } 89 | } 90 | } 91 | 92 | #if DEBUG 93 | struct TodoListView_Previews : PreviewProvider { 94 | static var previews: some View { 95 | TodoListView() 96 | .environment(\.managedObjectContext, PersistenceManager().managedObjectContext) 97 | } 98 | } 99 | #endif 100 | -------------------------------------------------------------------------------- /DubDubDo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6915584324953399002F99D7 /* TodoOperations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6915584224953399002F99D7 /* TodoOperations.swift */; }; 11 | 69796D4422B19882006BC1C4 /* TodoListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69796D4322B19882006BC1C4 /* TodoListView.swift */; }; 12 | 69A4AE0D22AEFC1B006186F0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A4AE0C22AEFC1B006186F0 /* AppDelegate.swift */; }; 13 | 69A4AE0F22AEFC1B006186F0 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A4AE0E22AEFC1B006186F0 /* SceneDelegate.swift */; }; 14 | 69A4AE1322AEFC2D006186F0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 69A4AE1222AEFC2D006186F0 /* Assets.xcassets */; }; 15 | 69A4AE1622AEFC2D006186F0 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 69A4AE1522AEFC2D006186F0 /* Preview Assets.xcassets */; }; 16 | 69A4AE1922AEFC2D006186F0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69A4AE1722AEFC2D006186F0 /* LaunchScreen.storyboard */; }; 17 | 69F5E99D24954C5000EE67EF /* TodoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69F5E99C24954C5000EE67EF /* TodoCell.swift */; }; 18 | 69FBC1BC22B1836000B7DFE5 /* Todo.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 69FBC1BA22B1836000B7DFE5 /* Todo.xcdatamodeld */; }; 19 | 69FBC1C222B183EC00B7DFE5 /* PersistenceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69FBC1C122B183EC00B7DFE5 /* PersistenceManager.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | 6915584224953399002F99D7 /* TodoOperations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodoOperations.swift; sourceTree = ""; }; 24 | 69796D4322B19882006BC1C4 /* TodoListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodoListView.swift; sourceTree = ""; }; 25 | 69A4AE0922AEFC1B006186F0 /* DubDubDo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DubDubDo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 69A4AE0C22AEFC1B006186F0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 27 | 69A4AE0E22AEFC1B006186F0 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 28 | 69A4AE1222AEFC2D006186F0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | 69A4AE1522AEFC2D006186F0 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 30 | 69A4AE1822AEFC2D006186F0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 31 | 69A4AE1A22AEFC2D006186F0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 69F5E99C24954C5000EE67EF /* TodoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodoCell.swift; sourceTree = ""; }; 33 | 69FBC1BB22B1836000B7DFE5 /* Todo.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Todo.xcdatamodel; sourceTree = ""; }; 34 | 69FBC1C122B183EC00B7DFE5 /* PersistenceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersistenceManager.swift; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 69A4AE0622AEFC1B006186F0 /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 692A93BF22B1955C0065C050 /* Views */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 69796D4322B19882006BC1C4 /* TodoListView.swift */, 52 | 69F5E99C24954C5000EE67EF /* TodoCell.swift */, 53 | ); 54 | path = Views; 55 | sourceTree = ""; 56 | }; 57 | 692A93C022B195600065C050 /* Model */ = { 58 | isa = PBXGroup; 59 | children = ( 60 | 69FBC1BA22B1836000B7DFE5 /* Todo.xcdatamodeld */, 61 | ); 62 | path = Model; 63 | sourceTree = ""; 64 | }; 65 | 692A93C122B1956B0065C050 /* Supporting Files */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 69A4AE1222AEFC2D006186F0 /* Assets.xcassets */, 69 | 69A4AE1722AEFC2D006186F0 /* LaunchScreen.storyboard */, 70 | ); 71 | path = "Supporting Files"; 72 | sourceTree = ""; 73 | }; 74 | 692A93C222B196B90065C050 /* Persistence */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 6915584224953399002F99D7 /* TodoOperations.swift */, 78 | 69FBC1C122B183EC00B7DFE5 /* PersistenceManager.swift */, 79 | ); 80 | path = Persistence; 81 | sourceTree = ""; 82 | }; 83 | 69A4AE0022AEFC1B006186F0 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 69A4AE0B22AEFC1B006186F0 /* DubDubDo */, 87 | 69A4AE0A22AEFC1B006186F0 /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 69A4AE0A22AEFC1B006186F0 /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 69A4AE0922AEFC1B006186F0 /* DubDubDo.app */, 95 | ); 96 | name = Products; 97 | sourceTree = ""; 98 | }; 99 | 69A4AE0B22AEFC1B006186F0 /* DubDubDo */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 69A4AE0C22AEFC1B006186F0 /* AppDelegate.swift */, 103 | 69A4AE0E22AEFC1B006186F0 /* SceneDelegate.swift */, 104 | 692A93C222B196B90065C050 /* Persistence */, 105 | 692A93BF22B1955C0065C050 /* Views */, 106 | 692A93C022B195600065C050 /* Model */, 107 | 692A93C122B1956B0065C050 /* Supporting Files */, 108 | 69A4AE1A22AEFC2D006186F0 /* Info.plist */, 109 | 69A4AE1422AEFC2D006186F0 /* Preview Content */, 110 | ); 111 | path = DubDubDo; 112 | sourceTree = ""; 113 | }; 114 | 69A4AE1422AEFC2D006186F0 /* Preview Content */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 69A4AE1522AEFC2D006186F0 /* Preview Assets.xcassets */, 118 | ); 119 | path = "Preview Content"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | 69A4AE0822AEFC1B006186F0 /* DubDubDo */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = 69A4AE1D22AEFC2D006186F0 /* Build configuration list for PBXNativeTarget "DubDubDo" */; 128 | buildPhases = ( 129 | 69A4AE0522AEFC1B006186F0 /* Sources */, 130 | 69A4AE0622AEFC1B006186F0 /* Frameworks */, 131 | 69A4AE0722AEFC1B006186F0 /* Resources */, 132 | ); 133 | buildRules = ( 134 | ); 135 | dependencies = ( 136 | ); 137 | name = DubDubDo; 138 | productName = DubDubDo; 139 | productReference = 69A4AE0922AEFC1B006186F0 /* DubDubDo.app */; 140 | productType = "com.apple.product-type.application"; 141 | }; 142 | /* End PBXNativeTarget section */ 143 | 144 | /* Begin PBXProject section */ 145 | 69A4AE0122AEFC1B006186F0 /* Project object */ = { 146 | isa = PBXProject; 147 | attributes = { 148 | LastSwiftUpdateCheck = 1100; 149 | LastUpgradeCheck = 1100; 150 | ORGANIZATIONNAME = "Stephen McMillan"; 151 | TargetAttributes = { 152 | 69A4AE0822AEFC1B006186F0 = { 153 | CreatedOnToolsVersion = 11.0; 154 | }; 155 | }; 156 | }; 157 | buildConfigurationList = 69A4AE0422AEFC1B006186F0 /* Build configuration list for PBXProject "DubDubDo" */; 158 | compatibilityVersion = "Xcode 9.3"; 159 | developmentRegion = en; 160 | hasScannedForEncodings = 0; 161 | knownRegions = ( 162 | en, 163 | Base, 164 | ); 165 | mainGroup = 69A4AE0022AEFC1B006186F0; 166 | productRefGroup = 69A4AE0A22AEFC1B006186F0 /* Products */; 167 | projectDirPath = ""; 168 | projectRoot = ""; 169 | targets = ( 170 | 69A4AE0822AEFC1B006186F0 /* DubDubDo */, 171 | ); 172 | }; 173 | /* End PBXProject section */ 174 | 175 | /* Begin PBXResourcesBuildPhase section */ 176 | 69A4AE0722AEFC1B006186F0 /* Resources */ = { 177 | isa = PBXResourcesBuildPhase; 178 | buildActionMask = 2147483647; 179 | files = ( 180 | 69A4AE1922AEFC2D006186F0 /* LaunchScreen.storyboard in Resources */, 181 | 69A4AE1622AEFC2D006186F0 /* Preview Assets.xcassets in Resources */, 182 | 69A4AE1322AEFC2D006186F0 /* Assets.xcassets in Resources */, 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | /* End PBXResourcesBuildPhase section */ 187 | 188 | /* Begin PBXSourcesBuildPhase section */ 189 | 69A4AE0522AEFC1B006186F0 /* Sources */ = { 190 | isa = PBXSourcesBuildPhase; 191 | buildActionMask = 2147483647; 192 | files = ( 193 | 69A4AE0D22AEFC1B006186F0 /* AppDelegate.swift in Sources */, 194 | 6915584324953399002F99D7 /* TodoOperations.swift in Sources */, 195 | 69F5E99D24954C5000EE67EF /* TodoCell.swift in Sources */, 196 | 69FBC1C222B183EC00B7DFE5 /* PersistenceManager.swift in Sources */, 197 | 69FBC1BC22B1836000B7DFE5 /* Todo.xcdatamodeld in Sources */, 198 | 69796D4422B19882006BC1C4 /* TodoListView.swift in Sources */, 199 | 69A4AE0F22AEFC1B006186F0 /* SceneDelegate.swift in Sources */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | /* End PBXSourcesBuildPhase section */ 204 | 205 | /* Begin PBXVariantGroup section */ 206 | 69A4AE1722AEFC2D006186F0 /* LaunchScreen.storyboard */ = { 207 | isa = PBXVariantGroup; 208 | children = ( 209 | 69A4AE1822AEFC2D006186F0 /* Base */, 210 | ); 211 | name = LaunchScreen.storyboard; 212 | sourceTree = ""; 213 | }; 214 | /* End PBXVariantGroup section */ 215 | 216 | /* Begin XCBuildConfiguration section */ 217 | 69A4AE1B22AEFC2D006186F0 /* Debug */ = { 218 | isa = XCBuildConfiguration; 219 | buildSettings = { 220 | ALWAYS_SEARCH_USER_PATHS = NO; 221 | CLANG_ANALYZER_NONNULL = YES; 222 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 223 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 224 | CLANG_CXX_LIBRARY = "libc++"; 225 | CLANG_ENABLE_MODULES = YES; 226 | CLANG_ENABLE_OBJC_ARC = YES; 227 | CLANG_ENABLE_OBJC_WEAK = YES; 228 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 229 | CLANG_WARN_BOOL_CONVERSION = YES; 230 | CLANG_WARN_COMMA = YES; 231 | CLANG_WARN_CONSTANT_CONVERSION = YES; 232 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 233 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 234 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 235 | CLANG_WARN_EMPTY_BODY = YES; 236 | CLANG_WARN_ENUM_CONVERSION = YES; 237 | CLANG_WARN_INFINITE_RECURSION = YES; 238 | CLANG_WARN_INT_CONVERSION = YES; 239 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 240 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 241 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 242 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 243 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 244 | CLANG_WARN_STRICT_PROTOTYPES = YES; 245 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 246 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 247 | CLANG_WARN_UNREACHABLE_CODE = YES; 248 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 249 | COPY_PHASE_STRIP = NO; 250 | DEBUG_INFORMATION_FORMAT = dwarf; 251 | ENABLE_STRICT_OBJC_MSGSEND = YES; 252 | ENABLE_TESTABILITY = YES; 253 | GCC_C_LANGUAGE_STANDARD = gnu11; 254 | GCC_DYNAMIC_NO_PIC = NO; 255 | GCC_NO_COMMON_BLOCKS = YES; 256 | GCC_OPTIMIZATION_LEVEL = 0; 257 | GCC_PREPROCESSOR_DEFINITIONS = ( 258 | "DEBUG=1", 259 | "$(inherited)", 260 | ); 261 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 262 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 263 | GCC_WARN_UNDECLARED_SELECTOR = YES; 264 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 265 | GCC_WARN_UNUSED_FUNCTION = YES; 266 | GCC_WARN_UNUSED_VARIABLE = YES; 267 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 268 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 269 | MTL_FAST_MATH = YES; 270 | ONLY_ACTIVE_ARCH = YES; 271 | SDKROOT = iphoneos; 272 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 273 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 274 | }; 275 | name = Debug; 276 | }; 277 | 69A4AE1C22AEFC2D006186F0 /* Release */ = { 278 | isa = XCBuildConfiguration; 279 | buildSettings = { 280 | ALWAYS_SEARCH_USER_PATHS = NO; 281 | CLANG_ANALYZER_NONNULL = YES; 282 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 283 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 284 | CLANG_CXX_LIBRARY = "libc++"; 285 | CLANG_ENABLE_MODULES = YES; 286 | CLANG_ENABLE_OBJC_ARC = YES; 287 | CLANG_ENABLE_OBJC_WEAK = YES; 288 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 289 | CLANG_WARN_BOOL_CONVERSION = YES; 290 | CLANG_WARN_COMMA = YES; 291 | CLANG_WARN_CONSTANT_CONVERSION = YES; 292 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 293 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 294 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 295 | CLANG_WARN_EMPTY_BODY = YES; 296 | CLANG_WARN_ENUM_CONVERSION = YES; 297 | CLANG_WARN_INFINITE_RECURSION = YES; 298 | CLANG_WARN_INT_CONVERSION = YES; 299 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 300 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 301 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 302 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 303 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 304 | CLANG_WARN_STRICT_PROTOTYPES = YES; 305 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 306 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 307 | CLANG_WARN_UNREACHABLE_CODE = YES; 308 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 309 | COPY_PHASE_STRIP = NO; 310 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 311 | ENABLE_NS_ASSERTIONS = NO; 312 | ENABLE_STRICT_OBJC_MSGSEND = YES; 313 | GCC_C_LANGUAGE_STANDARD = gnu11; 314 | GCC_NO_COMMON_BLOCKS = YES; 315 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 316 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 317 | GCC_WARN_UNDECLARED_SELECTOR = YES; 318 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 319 | GCC_WARN_UNUSED_FUNCTION = YES; 320 | GCC_WARN_UNUSED_VARIABLE = YES; 321 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 322 | MTL_ENABLE_DEBUG_INFO = NO; 323 | MTL_FAST_MATH = YES; 324 | SDKROOT = iphoneos; 325 | SWIFT_COMPILATION_MODE = wholemodule; 326 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 327 | VALIDATE_PRODUCT = YES; 328 | }; 329 | name = Release; 330 | }; 331 | 69A4AE1E22AEFC2D006186F0 /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | buildSettings = { 334 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 335 | CODE_SIGN_STYLE = Automatic; 336 | DEVELOPMENT_ASSET_PATHS = "DubDubDo/Preview\\ Content"; 337 | DEVELOPMENT_TEAM = LM8XNFK349; 338 | ENABLE_PREVIEWS = YES; 339 | INFOPLIST_FILE = DubDubDo/Info.plist; 340 | LD_RUNPATH_SEARCH_PATHS = ( 341 | "$(inherited)", 342 | "@executable_path/Frameworks", 343 | ); 344 | PRODUCT_BUNDLE_IDENTIFIER = com.StephenMcMillan.DubDubDo; 345 | PRODUCT_NAME = "$(TARGET_NAME)"; 346 | SWIFT_VERSION = 5.0; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | }; 349 | name = Debug; 350 | }; 351 | 69A4AE1F22AEFC2D006186F0 /* Release */ = { 352 | isa = XCBuildConfiguration; 353 | buildSettings = { 354 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 355 | CODE_SIGN_STYLE = Automatic; 356 | DEVELOPMENT_ASSET_PATHS = "DubDubDo/Preview\\ Content"; 357 | DEVELOPMENT_TEAM = LM8XNFK349; 358 | ENABLE_PREVIEWS = YES; 359 | INFOPLIST_FILE = DubDubDo/Info.plist; 360 | LD_RUNPATH_SEARCH_PATHS = ( 361 | "$(inherited)", 362 | "@executable_path/Frameworks", 363 | ); 364 | PRODUCT_BUNDLE_IDENTIFIER = com.StephenMcMillan.DubDubDo; 365 | PRODUCT_NAME = "$(TARGET_NAME)"; 366 | SWIFT_VERSION = 5.0; 367 | TARGETED_DEVICE_FAMILY = "1,2"; 368 | }; 369 | name = Release; 370 | }; 371 | /* End XCBuildConfiguration section */ 372 | 373 | /* Begin XCConfigurationList section */ 374 | 69A4AE0422AEFC1B006186F0 /* Build configuration list for PBXProject "DubDubDo" */ = { 375 | isa = XCConfigurationList; 376 | buildConfigurations = ( 377 | 69A4AE1B22AEFC2D006186F0 /* Debug */, 378 | 69A4AE1C22AEFC2D006186F0 /* Release */, 379 | ); 380 | defaultConfigurationIsVisible = 0; 381 | defaultConfigurationName = Release; 382 | }; 383 | 69A4AE1D22AEFC2D006186F0 /* Build configuration list for PBXNativeTarget "DubDubDo" */ = { 384 | isa = XCConfigurationList; 385 | buildConfigurations = ( 386 | 69A4AE1E22AEFC2D006186F0 /* Debug */, 387 | 69A4AE1F22AEFC2D006186F0 /* Release */, 388 | ); 389 | defaultConfigurationIsVisible = 0; 390 | defaultConfigurationName = Release; 391 | }; 392 | /* End XCConfigurationList section */ 393 | 394 | /* Begin XCVersionGroup section */ 395 | 69FBC1BA22B1836000B7DFE5 /* Todo.xcdatamodeld */ = { 396 | isa = XCVersionGroup; 397 | children = ( 398 | 69FBC1BB22B1836000B7DFE5 /* Todo.xcdatamodel */, 399 | ); 400 | currentVersion = 69FBC1BB22B1836000B7DFE5 /* Todo.xcdatamodel */; 401 | path = Todo.xcdatamodeld; 402 | sourceTree = ""; 403 | versionGroupType = wrapper.xcdatamodel; 404 | }; 405 | /* End XCVersionGroup section */ 406 | }; 407 | rootObject = 69A4AE0122AEFC1B006186F0 /* Project object */; 408 | } 409 | --------------------------------------------------------------------------------