From 86397328fca9c51cd1bdd4f61d3c3a8b312b1e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elvis=20Nu=C3=B1ez?= Date: Wed, 4 Jan 2017 11:19:30 +0100 Subject: [PATCH] Formatting --- DemoSwift/AppDelegate.swift | 4 ++-- DemoSwift/ViewController.swift | 2 +- Package.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DemoSwift/AppDelegate.swift b/DemoSwift/AppDelegate.swift index 4fb3887..de77b82 100755 --- a/DemoSwift/AppDelegate.swift +++ b/DemoSwift/AppDelegate.swift @@ -8,13 +8,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let window = UIWindow(frame: UIScreen.main.bounds) return window - }() + }() var dataStack: DATAStack = { let dataStack = DATAStack(modelName: "DemoSwift") return dataStack - }() + }() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { if let window = self.window { diff --git a/DemoSwift/ViewController.swift b/DemoSwift/ViewController.swift index af35c83..2f33e56 100644 --- a/DemoSwift/ViewController.swift +++ b/DemoSwift/ViewController.swift @@ -12,7 +12,7 @@ class ViewController: UITableViewController { let dataSource = DATASource(tableView: self.tableView, cellIdentifier: "Cell", fetchRequest: request, mainContext: self.dataStack.mainContext, configuration: { cell, item, indexPath in if let name = item.value(forKey: "name") as? String, let createdDate = item.value(forKey: "createdDate") as? NSDate { - cell.textLabel?.text = name + " - " + createdDate.description + cell.textLabel?.text = name + " - " + createdDate.description } }) diff --git a/Package.swift b/Package.swift index 0ce2070..deed36b 100755 --- a/Package.swift +++ b/Package.swift @@ -24,5 +24,5 @@ import PackageDescription let package = Package( - name: "DATAStack" + name: "DATAStack" )