-com.apple.CoreData.SQLDebug 1-3
- print all SQL queries called by Core Data-com.apple.CoreData.Logging.stderr 1-3
- needed alongside with theSQLDebug
from iOS 10+ because of new logging system, more on that in changelog
-com.apple.CoreData.SyntaxtColoredLogging YES
- probably syntax colored logging (not tried)-com.apple.CoreData.SQLiteDebugSynchronous 1
- preference controls some aspects of the SQLite store. See the "Configuring a SQLite Store's Save Behavior" section of the Core Data Programming Guide for details-com.apple.CoreData.SQLiteIntegrityCheck 1
- the SQLite store does extra integrity checking-com.apple.CoreData.MigrationDebug 1
- Core Data will log information about exceptional cases as it migrates data-com.apple.CoreData.ThreadingDebug
- preference enables assertions to enforce Core Data's multi-threading policy. It is a number, where incre
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
// Usage Examples | |
let shadowColor = Color.shadow.value | |
let shadowColorWithAlpha = Color.shadow.withAlpha(0.5) | |
let customColorWithAlpha = Color.custom(hexString: "#123edd", alpha: 0.25).value | |
enum Color { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIScreen { | |
class func screenshot() -> UIImage { | |
let view = mainScreen().snapshotViewAfterScreenUpdates(false) | |
UIGraphicsBeginImageContext(view.bounds.size) | |
view.drawViewHierarchyInRect(view.bounds, afterScreenUpdates: true) | |
let screenshot = UIGraphicsGetImageFromCurrentImageContext() | |
UIGraphicsEndImageContext() |