{"id":19345665,"url":"https://github.com/daprice/blurhashviews","last_synced_at":"2025-04-09T15:05:48.635Z","repository":{"id":244347410,"uuid":"814889792","full_name":"daprice/BlurHashViews","owner":"daprice","description":"Decode BlurHash strings to SwiftUI MeshGradient or Color with various customization options.","archived":false,"fork":false,"pushed_at":"2025-04-08T21:49:45.000Z","size":49,"stargazers_count":76,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T15:05:43.232Z","etag":null,"topics":["blurhash","ios18","macos15","meshgradient","swift-package","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daprice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T23:40:07.000Z","updated_at":"2025-04-08T21:49:49.000Z","dependencies_parsed_at":"2024-06-16T08:00:10.734Z","dependency_job_id":"ec1d754a-0bfb-4ce3-b0ac-c874b1b06c12","html_url":"https://github.com/daprice/BlurHashViews","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":"0.18181818181818177","last_synced_commit":"b82c5af24c5d816405f4b8c743ff6e7420326402"},"previous_names":["daprice/blurhashviews"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daprice%2FBlurHashViews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daprice%2FBlurHashViews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daprice%2FBlurHashViews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daprice%2FBlurHashViews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daprice","download_url":"https://codeload.github.com/daprice/BlurHashViews/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055284,"owners_count":21040157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blurhash","ios18","macos15","meshgradient","swift-package","swiftui"],"created_at":"2024-11-10T04:07:37.255Z","updated_at":"2025-04-09T15:05:48.617Z","avatar_url":"https://github.com/daprice.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ``BlurHashViews``\n\nDecode BlurHash strings to SwiftUI `Color` or `MeshGradient` with various customization options.\n\n## Overview\n\nBlurHash ([blurha.sh](https://blurha.sh)) is a way of representing placeholders for images using a compact string representation. [Existing implementations](https://github.com/woltapp/blurhash) focus on decoding a BlurHash to a small image that can be used as a placeholder. This package allows you to create native SwiftUI views directly from BlurHash encoded strings.\n\nOpen `Sources/BlurHashViews/Previews.swift` in Xcode 16 for an interactive SwiftUI preview with example views of BlurHashes from social media sites, allowing you to try different customization options for how they are displayed, including:\n\n- Change the `punch` argument to control the contrast between colors in the BlurHash.\n- Decode the BlurHash at different detail levels for more or less complex mesh gradients.\n- Adjust the smoothing and color space options provided by SwiftUI MeshGradient.\n\nThere's also a decoder that returns the mesh points and colors so you can customize it in code however you want – animate the points to make it swirl, find the most intense color in the image, make custom transitions… whatever you can dream up!\n\n### Compatibility\n\n- iOS/tvOS 13+, macOS 10.15+, watchOS 6+ – Create a SwiftUI `Color` from the average of a BlurHash.\n- iOS/tvOS 18+, macOS 15+, watchOS 11+ – Create a `MeshGradient` from the colors in a BlurHash.\n\nFor previous operating systems, the [original BlurHash library](https://github.com/woltapp/blurhash/tree/master/Swift) provides a UIImage-based decoding implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaprice%2Fblurhashviews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaprice%2Fblurhashviews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaprice%2Fblurhashviews/lists"}