WIP: migrations demo

This commit is contained in:
John Estropia
2020-09-08 09:09:36 +09:00
parent 8d7f282743
commit 2bbf6b34ea
16 changed files with 199 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ extension Classic.ColorsDemo {
switch self {
case .all: return .init()
case .light: return (\.brightness >= 0.9)
case .light: return (\.brightness >= 0.6)
case .dark: return (\.brightness <= 0.4)
}
}

View File

@@ -96,6 +96,6 @@ final class Classic_ColorsDemo_Palette: NSManagedObject {
private static func randomBrightness() -> Float {
return Float.random(in: 0.0 ... 1.0)
return Float.random(in: 0.1 ... 0.9)
}
}