Skip to content

Commit eb3dc6a

Browse files
author
andela-gukpere
committed
fix(Async): User DB fetch runs on new Thread
1 parent 47b1bd5 commit eb3dc6a

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

IOSSwiftBoiler/AppDelegate.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5454
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
5555
// Override point for customization after application launch.
5656
window?.tintColor = UIColor.init(red: 1.0, green: 0.46, blue: 0.7, alpha: 1.0)
57-
getUser()
57+
5858
if #available(iOS 9.0, *) {
5959
let login = UIApplicationShortcutItem(type: NSLocalizedString("OPEN", comment: "Open"), localizedTitle:NSLocalizedString("LOGIN", comment: "Login"), localizedSubtitle: "", icon: UIApplicationShortcutIcon(templateImageName: "lock"), userInfo: [Const.ACTION_LOGIN: true])
6060

@@ -68,6 +68,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6868
}
6969
}
7070

71+
Helpers.async({
72+
self.getUser()
73+
}) {
74+
75+
}
76+
7177
return true
7278
}
7379

IOSSwiftBoiler/de.lproj/Main.strings

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
/* Class = "UIViewController"; title = "Login View Controller"; ObjectID = "4k5-9N-fQq"; */
3-
"4k5-9N-fQq.title" = "Login Ansicht-Controller";
3+
"4k5-9N-fQq.title" = "Login View Controller";
44

55
/* Class = "UILabel"; text = " "; ObjectID = "7VG-um-3zl"; */
66
"7VG-um-3zl.text" = " ";
77

88
/* Class = "UITableViewSection"; footerTitle = "Visit blog.godson.com.ng from your Desktop Device"; ObjectID = "7yg-hm-3kv"; */
9-
"7yg-hm-3kv.footerTitle" = "Besuchen Sie blog.godson.com.ng von Ihrem Desktop-Gerät";
9+
"7yg-hm-3kv.footerTitle" = "Visit blog.godson.com.ng from your Desktop Device";
1010

1111
/* Class = "UITableViewSection"; headerTitle = "Application"; ObjectID = "7yg-hm-3kv"; */
12-
"7yg-hm-3kv.headerTitle" = "Applikation";
12+
"7yg-hm-3kv.headerTitle" = "Application";
1313

1414
/* Class = "UILabel"; text = "Anmelden zu sehen guten Zeug"; ObjectID = "8jY-KN-yyH"; */
1515
"8jY-KN-yyH.text" = "Anmelden zu sehen guten Zeug";
@@ -18,7 +18,7 @@
1818
"D1m-VS-UYP.text" = "Vollname";
1919

2020
/* Class = "UILabel"; text = "Terms and Conditions"; ObjectID = "FOZ-VJ-cdc"; */
21-
"FOZ-VJ-cdc.text" = "Geschäftsbedingungen";
21+
"FOZ-VJ-cdc.text" = "Terms and Conditions";
2222

2323
/* Class = "UILabel"; text = "Swift Über Alles"; ObjectID = "FU9-lL-09k"; */
2424
"FU9-lL-09k.text" = "Swift Über Alles";
@@ -30,7 +30,7 @@
3030
"KZM-uP-oOP.text" = "Anmelden";
3131

3232
/* Class = "UILabel"; text = "About"; ObjectID = "KfQ-88-5tJ"; */
33-
"KfQ-88-5tJ.text" = "Über";
33+
"KfQ-88-5tJ.text" = "About";
3434

3535
/* Class = "UILabel"; text = "Beschreibung"; ObjectID = "LkC-06-lGI"; */
3636
"LkC-06-lGI.text" = "Beschreibung";
@@ -45,10 +45,10 @@
4545
"X4w-2M-Ny5.title" = "Title";
4646

4747
/* Class = "UIButton"; normalTitle = "Go To Login"; ObjectID = "Zhu-o7-AfR"; */
48-
"Zhu-o7-AfR.normalTitle" = "Gehen Sie zu Anmelden";
48+
"Zhu-o7-AfR.normalTitle" = "Go To Login";
4949

5050
/* Class = "UITextView"; text = "Login to view and manage your profile."; ObjectID = "i70-dk-yuS"; */
51-
"i70-dk-yuS.text" = "Anmelden Ihr Profil anzuzeigen und zu verwalten.";
51+
"i70-dk-yuS.text" = "Login to view and manage your profile.";
5252

5353
/* Class = "UIButton"; normalTitle = " Twitter"; ObjectID = "jhJ-xA-HOq"; */
5454
"jhJ-xA-HOq.normalTitle" = " Twitter";
@@ -60,7 +60,7 @@
6060
"pem-vk-42n.text" = "Schmetterling ist schön";
6161

6262
/* Class = "UIButton"; normalTitle = "Later"; ObjectID = "qxC-rP-McH"; */
63-
"qxC-rP-McH.normalTitle" = "Später";
63+
"qxC-rP-McH.normalTitle" = "Later";
6464

6565
/* Class = "UILabel"; text = "blog.godon.com.ng"; ObjectID = "tmc-ZG-eBr"; */
6666
"tmc-ZG-eBr.text" = "blog.godon.com.ng";

0 commit comments

Comments
 (0)