mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-17 22:46:51 +01:00
39 lines
817 B
Swift
39 lines
817 B
Swift
//
|
|
// AppDelegate.swift
|
|
// HardcoreDataDemo
|
|
//
|
|
// Created by John Rommel Estropia on 2015/05/02.
|
|
// Copyright (c) 2015 John Rommel Estropia. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import HardcoreData
|
|
|
|
|
|
let paletteList: ManagedObjectListController<Palette> = {
|
|
|
|
HardcoreData.defaultStack.addSQLiteStore()
|
|
return HardcoreData.observeObjectList(
|
|
From(Palette),
|
|
GroupBy("colorName"),
|
|
SortedBy(.Ascending("hue"), .Ascending("dateAdded"))
|
|
)
|
|
}()
|
|
|
|
|
|
// MARK: - AppDelegate
|
|
|
|
@UIApplicationMain
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
|
// MARK: UIApplicationDelegate
|
|
|
|
var window: UIWindow?
|
|
|
|
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
|
|
|
|
return true
|
|
}
|
|
}
|
|
|