blurhash icon indicating copy to clipboard operation
blurhash copied to clipboard

Add SwiftUI and MacOS support to BlurHashDecode

Open kevin-hv opened this issue 2 years ago • 1 comments

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: image

kevin-hv avatar Oct 27 '22 14:10 kevin-hv