{"id":22763284,"url":"https://github.com/nikstar/variableblur","last_synced_at":"2025-04-07T13:03:50.600Z","repository":{"id":207671025,"uuid":"719818604","full_name":"nikstar/VariableBlur","owner":"nikstar","description":"SwiftUI variable blur (progressive blur)","archived":false,"fork":false,"pushed_at":"2025-03-19T08:14:36.000Z","size":16,"stargazers_count":313,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T12:04:06.790Z","etag":null,"topics":["progressive-blur","swift","swiftui","variable-blur"],"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/nikstar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-11-17T00:50:15.000Z","updated_at":"2025-03-30T16:12:06.000Z","dependencies_parsed_at":"2023-11-17T02:35:30.871Z","dependency_job_id":"9884332a-0f8a-4b08-b0de-1ab422080644","html_url":"https://github.com/nikstar/VariableBlur","commit_stats":null,"previous_names":["nikstar/variableview"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikstar%2FVariableBlur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikstar%2FVariableBlur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikstar%2FVariableBlur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikstar%2FVariableBlur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikstar","download_url":"https://codeload.github.com/nikstar/VariableBlur/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657275,"owners_count":20974344,"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":["progressive-blur","swift","swiftui","variable-blur"],"created_at":"2024-12-11T11:07:55.335Z","updated_at":"2025-04-07T13:03:50.576Z","avatar_url":"https://github.com/nikstar.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![VariableBlur](https://github.com/user-attachments/assets/accdd9d2-4c8a-4970-bce0-00842a47ff87)\n\n# VariableBlur\n\nSwiftUI variable blur (progressive blur)  \n\n_First of all, all hard work was done by **[jtrivedi](https://github.com/jtrivedi/VariableBlurView)** - I just made some minor adjustments._\n\nChanges in this version:\n\n- [x] all code is in **one file**\n- [x] dynamically generates gradient image allowing for further adjustments\n- [x] fixes crash when switching between light and dark mode\n- [x] supports upside down variable blurs (clear at the top, blurred at the bottom)\n\nUse of private API did not trigger App Store rejection for me but do tell if it does for you. \n\n\n## Install\n\n### Recommended\n\nCopy [VariableBlur.swift](https://github.com/nikstar/VariableBlur/blob/main/Sources/VariableBlur/VariableBlur.swift) to your project.\n\n### SPM\n\nTo add a package dependency to your Xcode project, select File \u003e Add Package and enter this repository's URL (\u003chttps://github.com/nikstar/VariableBlur\u003e).\n\n## Example\n\nUsed to create image on top of this page:\n\n```swift\nZStack(alignment: .top) {\n    Color.white\n    Color.blue.opacity(0.3)\n    Image(\"im\")\n        .resizable()\n        .aspectRatio(contentMode: .fit)\n        .padding(.horizontal, 50)\n    Text(\"VariableBlur\")\n        .font(.largeTitle.monospaced().weight(.bold))\n        .padding(.top, 230)\n        .foregroundStyle(.white.opacity(0.9))\n}\n.overlay(alignment: .top) {\n    VariableBlurView(maxBlurRadius: 20, direction: .blurredTopClearBottom)\n        .frame(height: 200)\n}\n.ignoresSafeArea()\n```\n\nBlur matching status bar/cutout safe area:\n\n```swift\nContentView()\n    .overlay(alignment: .top) {\n        GeometryReader { geom in\n            VariableBlurView(maxBlurRadius: 10)\n                .frame(height: geom.safeAreaInsets.top)\n                .ignoresSafeArea()\n        }\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikstar%2Fvariableblur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikstar%2Fvariableblur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikstar%2Fvariableblur/lists"}