Updated macOS example
This commit is contained in:
parent
fd693f6d4d
commit
2ce0b6f3bf
|
@ -7,12 +7,7 @@
|
|||
import PlaceholderKit
|
||||
import Cocoa
|
||||
|
||||
let images = [
|
||||
Placeholder(size: CGSize(width: 100, height: 100), backgroundStyle: .solidColor(.red)),
|
||||
Placeholder(size: CGSize(width: 200, height: 100), backgroundStyle: .solidColor(.blue)),
|
||||
Placeholder(size: CGSize(width: 100, height: 200), backgroundStyle: .solidColor(.green)),
|
||||
Placeholder(size: CGSize(width: 320, height: 480), backgroundStyle: .solidColor(.yellow)),
|
||||
].compactMap({$0.render()})
|
||||
let images = PlaceholderKit.defaultPlaceholders
|
||||
|
||||
let desktopURL = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask).first!
|
||||
|
||||
|
|
Loading…
Reference in New Issue