Skip to content

Add SwiftUI and MacOS support to BlurHashDecode #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevin-hv
Copy link

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 kevin-hv changed the title Added SwiftUI and MacOS support to BlurHashDecode Add SwiftUI and MacOS support to BlurHashDecode Oct 27, 2022
@notapplicableio
Copy link

Any chance this will be merged? It seems to work.

@kevin-hv
Copy link
Author

kevin-hv commented Apr 6, 2025

Heyo, just wanted to check back on this PR, seems like it might have been forgotten.

CC: @dhoepfl

@kevin-hv kevin-hv closed this May 2, 2025
@kevin-hv kevin-hv reopened this May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants