spacing on custom icon widget

create color extension for random
widget 512x512 ... 1024x1024 didn't work
clean up Icon Widget View
This commit is contained in:
Trey t
2022-02-13 23:23:58 -06:00
parent 649180dbb5
commit b8e1198c5b
3 changed files with 25 additions and 22 deletions

View File

@@ -145,3 +145,13 @@ extension Date {
return dates
}
}
extension Color {
static func random() -> Self {
Self(
red: .random(in: 0...1),
green: .random(in: 0...1),
blue: .random(in: 0...1)
)
}
}