blurhash
blurhash copied to clipboard
Add SwiftUI and MacOS support to BlurHashDecode
Adding SwiftUI and MacOS support, so that people who develop to those platforms will also be able to use blurhash.
SwiftUI example of initialising an Image: Image(blurHash: "LGF5]+Yk^6#M@-5c,1J5@[or[Q6.", size: .init(width: 400, height: 200))
MacOS example of initialising an NSImage: NSImage(blurHash: "LGF5]+Yk^6#M@-5c,1J5@[or[Q6.", size: .init(width: 400, height: 200))
XCode SwiftUI Preview of 2 tiles with blurhash images: