Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Jan 4, 2017
1 parent 1617b75 commit 8639732
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DemoSwift/AppDelegate.swift
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion DemoSwift/ViewController.swift
Expand Up @@ -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
}
})

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Expand Up @@ -24,5 +24,5 @@
import PackageDescription

let package = Package(
name: "DATAStack"
name: "DATAStack"
)

0 comments on commit 8639732

Please sign in to comment.