mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-26 02:38:32 +02:00
WIP: migrations demo
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user