Compare commits

...

2 commits
0.8.1 ... main

Author SHA1 Message Date
Shibo Lyu
9a8b486f55
Create FUNDING.yml 2024-12-24 14:18:08 +08:00
Shibo Lyu
481f59cf41 fix: macos build
fixes #4
2024-12-20 14:58:23 +08:00
2 changed files with 3 additions and 1 deletions

2
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1,2 @@
github: [laosb]
buy_me_a_coffee: laosb

View file

@ -14,7 +14,7 @@ import AppKit
/// On macOS, it's `NSImage` and on iOS/visionOS it's `UIImage`.
public typealias PlatformImage = NSImage
extension PlatformImage {
static let previewImage: PlatformImage = .init(contentsOf: URL(string: "file:///System/Library/Desktop%20Pictures/Hello%20Metallic%20Blue.heic")!)!
@MainActor static let previewImage: PlatformImage = .init(contentsOf: URL(string: "file:///System/Library/Desktop%20Pictures/Hello%20Metallic%20Blue.heic")!)!
}
#else
import UIKit