Updated macOS example

This commit is contained in:
Simon 2018-12-28 14:39:20 +08:00
parent fd693f6d4d
commit 2ce0b6f3bf
1 changed files with 1 additions and 6 deletions

View File

@ -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!