Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b6e0287

Browse files
author
quicklearner4991@gmail.com
committedAug 3, 2021
Initial commit
0 parents  commit b6e0287

File tree

14 files changed

+721
-0
lines changed

14 files changed

+721
-0
lines changed
 

‎README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
![App Brewery Banner](https://github.com/londonappbrewery/Images/blob/master/AppBreweryBanner.png)
2+
3+
4+
# Todoey ✓
5+
6+
## Our Goal
7+
8+
The objective of this tutorial is to understand how to save data in iOS. We'll look at various choices and learn to use UserDefaults, Core Data and Realm.
9+
10+
11+
## What you will create
12+
13+
A todolist app to keep track of all your tasks.
14+
15+
16+
>This is a companion project to The App Brewery's Complete iOS Development Bootcamp, check out the full course at [www.appbrewery.co](https://www.appbrewery.co/)
17+
18+
![End Banner](https://github.com/londonappbrewery/Images/blob/master/readme-end-banner.png)
19+

‎Todoey.xcodeproj/project.pbxproj

Lines changed: 339 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,339 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
EB2BE4FA239524DB00FB933B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB2BE4F9239524DB00FB933B /* AppDelegate.swift */; };
11+
EB2BE4FE239524DB00FB933B /* ToDoListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB2BE4FD239524DB00FB933B /* ToDoListViewController.swift */; };
12+
EB2BE501239524DB00FB933B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EB2BE4FF239524DB00FB933B /* Main.storyboard */; };
13+
EB2BE503239524DC00FB933B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EB2BE502239524DC00FB933B /* Assets.xcassets */; };
14+
EB2BE506239524DC00FB933B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EB2BE504239524DC00FB933B /* LaunchScreen.storyboard */; };
15+
/* End PBXBuildFile section */
16+
17+
/* Begin PBXFileReference section */
18+
EB2BE4F6239524DB00FB933B /* Todoey.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Todoey.app; sourceTree = BUILT_PRODUCTS_DIR; };
19+
EB2BE4F9239524DB00FB933B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
20+
EB2BE4FD239524DB00FB933B /* ToDoListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ToDoListViewController.swift; sourceTree = "<group>"; };
21+
EB2BE500239524DB00FB933B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
22+
EB2BE502239524DC00FB933B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
23+
EB2BE505239524DC00FB933B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
24+
EB2BE507239524DC00FB933B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
25+
/* End PBXFileReference section */
26+
27+
/* Begin PBXFrameworksBuildPhase section */
28+
EB2BE4F3239524DB00FB933B /* Frameworks */ = {
29+
isa = PBXFrameworksBuildPhase;
30+
buildActionMask = 2147483647;
31+
files = (
32+
);
33+
runOnlyForDeploymentPostprocessing = 0;
34+
};
35+
/* End PBXFrameworksBuildPhase section */
36+
37+
/* Begin PBXGroup section */
38+
EB2BE4ED239524DB00FB933B = {
39+
isa = PBXGroup;
40+
children = (
41+
EB2BE4F8239524DB00FB933B /* Todoey */,
42+
EB2BE4F7239524DB00FB933B /* Products */,
43+
);
44+
sourceTree = "<group>";
45+
};
46+
EB2BE4F7239524DB00FB933B /* Products */ = {
47+
isa = PBXGroup;
48+
children = (
49+
EB2BE4F6239524DB00FB933B /* Todoey.app */,
50+
);
51+
name = Products;
52+
sourceTree = "<group>";
53+
};
54+
EB2BE4F8239524DB00FB933B /* Todoey */ = {
55+
isa = PBXGroup;
56+
children = (
57+
EB2BE4F9239524DB00FB933B /* AppDelegate.swift */,
58+
EB2BE4FD239524DB00FB933B /* ToDoListViewController.swift */,
59+
EB2BE4FF239524DB00FB933B /* Main.storyboard */,
60+
EB2BE502239524DC00FB933B /* Assets.xcassets */,
61+
EB2BE504239524DC00FB933B /* LaunchScreen.storyboard */,
62+
EB2BE507239524DC00FB933B /* Info.plist */,
63+
);
64+
path = Todoey;
65+
sourceTree = "<group>";
66+
};
67+
/* End PBXGroup section */
68+
69+
/* Begin PBXNativeTarget section */
70+
EB2BE4F5239524DB00FB933B /* Todoey */ = {
71+
isa = PBXNativeTarget;
72+
buildConfigurationList = EB2BE50A239524DC00FB933B /* Build configuration list for PBXNativeTarget "Todoey" */;
73+
buildPhases = (
74+
EB2BE4F2239524DB00FB933B /* Sources */,
75+
EB2BE4F3239524DB00FB933B /* Frameworks */,
76+
EB2BE4F4239524DB00FB933B /* Resources */,
77+
);
78+
buildRules = (
79+
);
80+
dependencies = (
81+
);
82+
name = Todoey;
83+
productName = Todoey;
84+
productReference = EB2BE4F6239524DB00FB933B /* Todoey.app */;
85+
productType = "com.apple.product-type.application";
86+
};
87+
/* End PBXNativeTarget section */
88+
89+
/* Begin PBXProject section */
90+
EB2BE4EE239524DB00FB933B /* Project object */ = {
91+
isa = PBXProject;
92+
attributes = {
93+
LastSwiftUpdateCheck = 1120;
94+
LastUpgradeCheck = 1120;
95+
ORGANIZATIONNAME = "App Brewery";
96+
TargetAttributes = {
97+
EB2BE4F5239524DB00FB933B = {
98+
CreatedOnToolsVersion = 11.2.1;
99+
};
100+
};
101+
};
102+
buildConfigurationList = EB2BE4F1239524DB00FB933B /* Build configuration list for PBXProject "Todoey" */;
103+
compatibilityVersion = "Xcode 9.3";
104+
developmentRegion = en;
105+
hasScannedForEncodings = 0;
106+
knownRegions = (
107+
en,
108+
Base,
109+
);
110+
mainGroup = EB2BE4ED239524DB00FB933B;
111+
productRefGroup = EB2BE4F7239524DB00FB933B /* Products */;
112+
projectDirPath = "";
113+
projectRoot = "";
114+
targets = (
115+
EB2BE4F5239524DB00FB933B /* Todoey */,
116+
);
117+
};
118+
/* End PBXProject section */
119+
120+
/* Begin PBXResourcesBuildPhase section */
121+
EB2BE4F4239524DB00FB933B /* Resources */ = {
122+
isa = PBXResourcesBuildPhase;
123+
buildActionMask = 2147483647;
124+
files = (
125+
EB2BE506239524DC00FB933B /* LaunchScreen.storyboard in Resources */,
126+
EB2BE503239524DC00FB933B /* Assets.xcassets in Resources */,
127+
EB2BE501239524DB00FB933B /* Main.storyboard in Resources */,
128+
);
129+
runOnlyForDeploymentPostprocessing = 0;
130+
};
131+
/* End PBXResourcesBuildPhase section */
132+
133+
/* Begin PBXSourcesBuildPhase section */
134+
EB2BE4F2239524DB00FB933B /* Sources */ = {
135+
isa = PBXSourcesBuildPhase;
136+
buildActionMask = 2147483647;
137+
files = (
138+
EB2BE4FE239524DB00FB933B /* ToDoListViewController.swift in Sources */,
139+
EB2BE4FA239524DB00FB933B /* AppDelegate.swift in Sources */,
140+
);
141+
runOnlyForDeploymentPostprocessing = 0;
142+
};
143+
/* End PBXSourcesBuildPhase section */
144+
145+
/* Begin PBXVariantGroup section */
146+
EB2BE4FF239524DB00FB933B /* Main.storyboard */ = {
147+
isa = PBXVariantGroup;
148+
children = (
149+
EB2BE500239524DB00FB933B /* Base */,
150+
);
151+
name = Main.storyboard;
152+
sourceTree = "<group>";
153+
};
154+
EB2BE504239524DC00FB933B /* LaunchScreen.storyboard */ = {
155+
isa = PBXVariantGroup;
156+
children = (
157+
EB2BE505239524DC00FB933B /* Base */,
158+
);
159+
name = LaunchScreen.storyboard;
160+
sourceTree = "<group>";
161+
};
162+
/* End PBXVariantGroup section */
163+
164+
/* Begin XCBuildConfiguration section */
165+
EB2BE508239524DC00FB933B /* Debug */ = {
166+
isa = XCBuildConfiguration;
167+
buildSettings = {
168+
ALWAYS_SEARCH_USER_PATHS = NO;
169+
CLANG_ANALYZER_NONNULL = YES;
170+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
171+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
172+
CLANG_CXX_LIBRARY = "libc++";
173+
CLANG_ENABLE_MODULES = YES;
174+
CLANG_ENABLE_OBJC_ARC = YES;
175+
CLANG_ENABLE_OBJC_WEAK = YES;
176+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
177+
CLANG_WARN_BOOL_CONVERSION = YES;
178+
CLANG_WARN_COMMA = YES;
179+
CLANG_WARN_CONSTANT_CONVERSION = YES;
180+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
181+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
182+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
183+
CLANG_WARN_EMPTY_BODY = YES;
184+
CLANG_WARN_ENUM_CONVERSION = YES;
185+
CLANG_WARN_INFINITE_RECURSION = YES;
186+
CLANG_WARN_INT_CONVERSION = YES;
187+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
188+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
189+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
190+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
191+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
192+
CLANG_WARN_STRICT_PROTOTYPES = YES;
193+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
194+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
195+
CLANG_WARN_UNREACHABLE_CODE = YES;
196+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
197+
COPY_PHASE_STRIP = NO;
198+
DEBUG_INFORMATION_FORMAT = dwarf;
199+
ENABLE_STRICT_OBJC_MSGSEND = YES;
200+
ENABLE_TESTABILITY = YES;
201+
GCC_C_LANGUAGE_STANDARD = gnu11;
202+
GCC_DYNAMIC_NO_PIC = NO;
203+
GCC_NO_COMMON_BLOCKS = YES;
204+
GCC_OPTIMIZATION_LEVEL = 0;
205+
GCC_PREPROCESSOR_DEFINITIONS = (
206+
"DEBUG=1",
207+
"$(inherited)",
208+
);
209+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
210+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
211+
GCC_WARN_UNDECLARED_SELECTOR = YES;
212+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
213+
GCC_WARN_UNUSED_FUNCTION = YES;
214+
GCC_WARN_UNUSED_VARIABLE = YES;
215+
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
216+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
217+
MTL_FAST_MATH = YES;
218+
ONLY_ACTIVE_ARCH = YES;
219+
SDKROOT = iphoneos;
220+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
221+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
222+
};
223+
name = Debug;
224+
};
225+
EB2BE509239524DC00FB933B /* Release */ = {
226+
isa = XCBuildConfiguration;
227+
buildSettings = {
228+
ALWAYS_SEARCH_USER_PATHS = NO;
229+
CLANG_ANALYZER_NONNULL = YES;
230+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
231+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
232+
CLANG_CXX_LIBRARY = "libc++";
233+
CLANG_ENABLE_MODULES = YES;
234+
CLANG_ENABLE_OBJC_ARC = YES;
235+
CLANG_ENABLE_OBJC_WEAK = YES;
236+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
237+
CLANG_WARN_BOOL_CONVERSION = YES;
238+
CLANG_WARN_COMMA = YES;
239+
CLANG_WARN_CONSTANT_CONVERSION = YES;
240+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
241+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
242+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
243+
CLANG_WARN_EMPTY_BODY = YES;
244+
CLANG_WARN_ENUM_CONVERSION = YES;
245+
CLANG_WARN_INFINITE_RECURSION = YES;
246+
CLANG_WARN_INT_CONVERSION = YES;
247+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
248+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
249+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
250+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
251+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
252+
CLANG_WARN_STRICT_PROTOTYPES = YES;
253+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
254+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
255+
CLANG_WARN_UNREACHABLE_CODE = YES;
256+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
257+
COPY_PHASE_STRIP = NO;
258+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
259+
ENABLE_NS_ASSERTIONS = NO;
260+
ENABLE_STRICT_OBJC_MSGSEND = YES;
261+
GCC_C_LANGUAGE_STANDARD = gnu11;
262+
GCC_NO_COMMON_BLOCKS = YES;
263+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
264+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
265+
GCC_WARN_UNDECLARED_SELECTOR = YES;
266+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
267+
GCC_WARN_UNUSED_FUNCTION = YES;
268+
GCC_WARN_UNUSED_VARIABLE = YES;
269+
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
270+
MTL_ENABLE_DEBUG_INFO = NO;
271+
MTL_FAST_MATH = YES;
272+
SDKROOT = iphoneos;
273+
SWIFT_COMPILATION_MODE = wholemodule;
274+
SWIFT_OPTIMIZATION_LEVEL = "-O";
275+
VALIDATE_PRODUCT = YES;
276+
};
277+
name = Release;
278+
};
279+
EB2BE50B239524DC00FB933B /* Debug */ = {
280+
isa = XCBuildConfiguration;
281+
buildSettings = {
282+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
283+
CODE_SIGN_STYLE = Automatic;
284+
INFOPLIST_FILE = Todoey/Info.plist;
285+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
286+
LD_RUNPATH_SEARCH_PATHS = (
287+
"$(inherited)",
288+
"@executable_path/Frameworks",
289+
);
290+
PRODUCT_BUNDLE_IDENTIFIER = "com.londonappbrewery.todoey-ios13.Todoey";
291+
PRODUCT_NAME = "$(TARGET_NAME)";
292+
SWIFT_VERSION = 5.0;
293+
TARGETED_DEVICE_FAMILY = "1,2";
294+
};
295+
name = Debug;
296+
};
297+
EB2BE50C239524DC00FB933B /* Release */ = {
298+
isa = XCBuildConfiguration;
299+
buildSettings = {
300+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
301+
CODE_SIGN_STYLE = Automatic;
302+
INFOPLIST_FILE = Todoey/Info.plist;
303+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
304+
LD_RUNPATH_SEARCH_PATHS = (
305+
"$(inherited)",
306+
"@executable_path/Frameworks",
307+
);
308+
PRODUCT_BUNDLE_IDENTIFIER = "com.londonappbrewery.todoey-ios13.Todoey";
309+
PRODUCT_NAME = "$(TARGET_NAME)";
310+
SWIFT_VERSION = 5.0;
311+
TARGETED_DEVICE_FAMILY = "1,2";
312+
};
313+
name = Release;
314+
};
315+
/* End XCBuildConfiguration section */
316+
317+
/* Begin XCConfigurationList section */
318+
EB2BE4F1239524DB00FB933B /* Build configuration list for PBXProject "Todoey" */ = {
319+
isa = XCConfigurationList;
320+
buildConfigurations = (
321+
EB2BE508239524DC00FB933B /* Debug */,
322+
EB2BE509239524DC00FB933B /* Release */,
323+
);
324+
defaultConfigurationIsVisible = 0;
325+
defaultConfigurationName = Release;
326+
};
327+
EB2BE50A239524DC00FB933B /* Build configuration list for PBXNativeTarget "Todoey" */ = {
328+
isa = XCConfigurationList;
329+
buildConfigurations = (
330+
EB2BE50B239524DC00FB933B /* Debug */,
331+
EB2BE50C239524DC00FB933B /* Release */,
332+
);
333+
defaultConfigurationIsVisible = 0;
334+
defaultConfigurationName = Release;
335+
};
336+
/* End XCConfigurationList section */
337+
};
338+
rootObject = EB2BE4EE239524DB00FB933B /* Project object */;
339+
}

‎Todoey.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Todoey.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Todoey.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>

‎Todoey/AppDelegate.swift

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// AppDelegate.swift
3+
// Destini
4+
//
5+
// Created by Philipp Muellauer on 01/09/2015.
6+
// Copyright (c) 2015 London App Brewery. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
var window: UIWindow?
15+
16+
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18+
// Override point for customization after application launch.
19+
return true
20+
}
21+
22+
func applicationWillResignActive(_ application: UIApplication) {
23+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25+
}
26+
27+
func applicationDidEnterBackground(_ application: UIApplication) {
28+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30+
}
31+
32+
func applicationWillEnterForeground(_ application: UIApplication) {
33+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34+
}
35+
36+
func applicationDidBecomeActive(_ application: UIApplication) {
37+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38+
}
39+
40+
func applicationWillTerminate(_ application: UIApplication) {
41+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42+
}
43+
44+
45+
}
46+
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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+
}

‎Todoey/Assets.xcassets/Contents.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
6+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7+
</dependencies>
8+
<scenes>
9+
<!--View Controller-->
10+
<scene sceneID="EHf-IW-A2E">
11+
<objects>
12+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
13+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
14+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
15+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16+
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
17+
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
18+
</view>
19+
</viewController>
20+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
21+
</objects>
22+
<point key="canvasLocation" x="53" y="375"/>
23+
</scene>
24+
</scenes>
25+
</document>

‎Todoey/Base.lproj/Main.storyboard

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="ETD-DW-s5I">
3+
<device id="retina6_1" orientation="portrait" appearance="light"/>
4+
<dependencies>
5+
<deployment identifier="iOS"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
7+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
8+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9+
</dependencies>
10+
<scenes>
11+
<!--Todoey-->
12+
<scene sceneID="jYX-Ta-LBI">
13+
<objects>
14+
<tableViewController id="sJe-EC-RRp" customClass="ToDoListViewController" customModule="Todoey" customModuleProvider="target" sceneMemberID="viewController">
15+
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="yZj-LV-Lkd">
16+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
17+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
19+
<prototypes>
20+
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="ToDoItemCell" id="vX5-8p-evp">
21+
<rect key="frame" x="0.0" y="28" width="414" height="43.5"/>
22+
<autoresizingMask key="autoresizingMask"/>
23+
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="vX5-8p-evp" id="8ol-mR-f1J">
24+
<rect key="frame" x="0.0" y="0.0" width="414" height="43.5"/>
25+
<autoresizingMask key="autoresizingMask"/>
26+
</tableViewCellContentView>
27+
</tableViewCell>
28+
</prototypes>
29+
<connections>
30+
<outlet property="dataSource" destination="sJe-EC-RRp" id="fRJ-Ga-G2t"/>
31+
<outlet property="delegate" destination="sJe-EC-RRp" id="DVg-cH-JMw"/>
32+
</connections>
33+
</tableView>
34+
<navigationItem key="navigationItem" title="Todoey" id="anf-Yk-Aur"/>
35+
</tableViewController>
36+
<placeholder placeholderIdentifier="IBFirstResponder" id="aCI-r0-lZL" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
37+
</objects>
38+
<point key="canvasLocation" x="1734.7826086956522" y="82.366071428571431"/>
39+
</scene>
40+
<!--Navigation Controller-->
41+
<scene sceneID="h9F-D4-na2">
42+
<objects>
43+
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="ETD-DW-s5I" sceneMemberID="viewController">
44+
<toolbarItems/>
45+
<navigationBar key="navigationBar" contentMode="scaleToFill" id="ALo-hE-fDr">
46+
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
47+
<autoresizingMask key="autoresizingMask"/>
48+
<color key="barTintColor" systemColor="linkColor"/>
49+
<textAttributes key="titleTextAttributes">
50+
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
51+
</textAttributes>
52+
</navigationBar>
53+
<nil name="viewControllers"/>
54+
<connections>
55+
<segue destination="sJe-EC-RRp" kind="relationship" relationship="rootViewController" id="NIE-gv-vUO"/>
56+
</connections>
57+
</navigationController>
58+
<placeholder placeholderIdentifier="IBFirstResponder" id="R9U-fn-s0Y" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
59+
</objects>
60+
<point key="canvasLocation" x="824.63768115942037" y="82.366071428571431"/>
61+
</scene>
62+
</scenes>
63+
<resources>
64+
<systemColor name="linkColor">
65+
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
66+
</systemColor>
67+
<systemColor name="systemBackgroundColor">
68+
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
69+
</systemColor>
70+
</resources>
71+
</document>

‎Todoey/Info.plist

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
<key>LSRequiresIPhoneOS</key>
22+
<true/>
23+
<key>UILaunchStoryboardName</key>
24+
<string>LaunchScreen</string>
25+
<key>UIMainStoryboardFile</key>
26+
<string>Main</string>
27+
<key>UIRequiredDeviceCapabilities</key>
28+
<array>
29+
<string>armv7</string>
30+
</array>
31+
<key>UISupportedInterfaceOrientations</key>
32+
<array>
33+
<string>UIInterfaceOrientationPortrait</string>
34+
</array>
35+
<key>UISupportedInterfaceOrientations~ipad</key>
36+
<array>
37+
<string>UIInterfaceOrientationPortrait</string>
38+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
39+
<string>UIInterfaceOrientationLandscapeLeft</string>
40+
<string>UIInterfaceOrientationLandscapeRight</string>
41+
</array>
42+
</dict>
43+
</plist>

‎Todoey/ToDoListViewController.swift

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// ViewController.swift
3+
// Todoey
4+
//
5+
// Created by Philipp Muellauer on 02/12/2019.
6+
// Copyright © 2019 App Brewery. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class ToDoListViewController: UITableViewController {
12+
let array = ["GAFDGSG","VSBFFSB","BFBFB"]
13+
override func viewDidLoad() {
14+
super.viewDidLoad()
15+
// Do any additional setup after loading the view.
16+
}
17+
18+
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
19+
array.count
20+
}
21+
22+
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
23+
let cell = tableView.dequeueReusableCell(withIdentifier: "ToDoItemCell", for: indexPath)
24+
cell.textLabel?.text = array[indexPath.row]
25+
return cell
26+
}
27+
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
28+
print(indexPath)
29+
}
30+
}
31+

0 commit comments

Comments
 (0)
Please sign in to comment.