{"id":2165,"url":"https://github.com/efremidze/VisualEffectView","last_synced_at":"2025-08-06T16:30:47.801Z","repository":{"id":45623695,"uuid":"59773356","full_name":"efremidze/VisualEffectView","owner":"efremidze","description":"Dynamic blur background view with tint color (UIVisualEffectView subclass) 📱","archived":false,"fork":false,"pushed_at":"2024-09-04T00:40:42.000Z","size":7230,"stargazers_count":1125,"open_issues_count":10,"forks_count":80,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-09-17T19:16:57.622Z","etag":null,"topics":["apple","blur","effects","ios","swift","tint","uiblureffect","uivisualeffectview"],"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/efremidze.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"github":["efremidze"]}},"created_at":"2016-05-26T18:24:29.000Z","updated_at":"2024-09-06T08:50:35.000Z","dependencies_parsed_at":"2024-04-27T23:31:18.233Z","dependency_job_id":"a762a48b-571e-46b1-a66d-8ed09831df89","html_url":"https://github.com/efremidze/VisualEffectView","commit_stats":{"total_commits":122,"total_committers":8,"mean_commits":15.25,"dds":0.06557377049180324,"last_synced_commit":"657e7f1660cd95c6e09a0b08937a9503cc37a3fd"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FVisualEffectView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FVisualEffectView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FVisualEffectView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FVisualEffectView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efremidze","download_url":"https://codeload.github.com/efremidze/VisualEffectView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923677,"owners_count":17992566,"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":["apple","blur","effects","ios","swift","tint","uiblureffect","uivisualeffectview"],"created_at":"2024-01-05T20:16:06.347Z","updated_at":"2025-08-06T16:30:47.785Z","avatar_url":"https://github.com/efremidze.png","language":"Swift","funding_links":["https://github.com/sponsors/efremidze"],"categories":["Libs","BlurEffect","UI","UI [🔝](#readme)","Swift"],"sub_categories":["UI","Other free courses","Font","Other Testing"],"readme":"# VisualEffectView\n\n[![CI](https://github.com/efremidze/VisualEffectView/actions/workflows/ci.yml/badge.svg)](https://github.com/efremidze/VisualEffectView/actions/workflows/ci.yml)\n[![CocoaPods](https://img.shields.io/cocoapods/v/VisualEffectView.svg)](https://cocoapods.org/pods/VisualEffectView)\n[![Carthage](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage)\n[![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager/)\n[![Swift](https://img.shields.io/badge/Swift-5.9+-orange.svg)](https://swift.org)\n[![License](https://img.shields.io/github/license/efremidze/VisualEffectView.svg)](https://github.com/efremidze/VisualEffectView/blob/master/LICENSE)\n\n**VisualEffectView** is a blur effect library with tint color support. This library uses the [UIVisualEffectView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIVisualEffectView/) to generate the blur.\n\n\u003cimg src=\"/Images/demo.gif\" width=\"250\" /\u003e\n\n```\n$ pod try VisualEffectView\n```\n\n## Requirements\n\n- iOS 14.0+\n- Swift 5 (VisualEffectView 4.x), Swift 4 (VisualEffectView 3.x), Swift 3 (VisualEffectView 2.x), Swift 2 (VisualEffectView 1.x)\n- Supports SwiftUI\n\n## Usage\n\nAdd an instance of VisualEffectView to your view.\n\n```swift\nimport VisualEffectView\n\nlet visualEffectView = VisualEffectView(frame: CGRect(x: 0, y: 0, width: 320, height: 480))\n\n// Configure the view with tint color, blur radius, etc\nvisualEffectView.colorTint = .redColor()\nvisualEffectView.colorTintAlpha = 0.2\nvisualEffectView.blurRadius = 10\nvisualEffectView.scale = 1\n\naddSubview(visualEffectView)\n```\n\nDepending on the desired effect, the effect may affect content layered behind the view or content added to the visual effect view’s contentView. After you add the visual effect view to the view hierarchy, add any subviews to the contentView property of the visual effect view. Do not add subviews directly to the visual effect view itself. Refer to the [UIVisualEffectView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIVisualEffectView/) for more info.\n\nFor more examples, take a look at the example project.\n\n### Customization\n\n```swift\nvar colorTint: UIColor // tint color. default is nil\nvar colorTintAlpha: CGFloat // tint color alpha. default is 0\nvar blurRadius: CGFloat // blur radius. default is 0\nvar scale: CGFloat // scale factor. default is 1\n```\n\nIf you want `colorTintAlpha` to be different from `0`, make sure you always set it right after setting the `colorTint` or it may not be applied as expected.\nYou also have to make sure you don't set `colorTintAlpha` if `colorTint` is `nil`. \n\n### Storyboard Support\n\nWorks great with storyboards and xibs.\n\n### SwiftUI Support\n\nVisualEffectView supports SwiftUI.\n\n```swift\nimport VisualEffectView\n\nstruct ContentView: View {\n    var body: some View {\n        VisualEffect(colorTint: .white, colorTintAlpha: 0.5, blurRadius: 18, scale: 1)\n    }\n}\n```\n\nMake sure that `colorTintAlpha` is not set when `colorTint` is `nil`.\n\n## Installation\n\n### CocoaPods\nTo install with [CocoaPods](http://cocoapods.org/), simply add this in your `Podfile`:\n```ruby\nuse_frameworks!\npod \"VisualEffectView\"\n```\n\n### Carthage\nTo install with [Carthage](https://github.com/Carthage/Carthage), simply add this in your `Cartfile`:\n```ruby\ngithub \"efremidze/VisualEffectView\"\n```\n\n### Manually\n1. Download and drop ```VisualEffectView.swift``` in your project.  \n2. Congratulations!\n\n## Communication\n\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Disclaimer\n\nVisualEffectView utilizes a private UIKit API to do its magic. Use caution, submitting this code to the App Store adds the risk of being rejected!\n\n## Credits\n\nhttps://github.com/collinhundley/APCustomBlurView\n\n## License\n\nVisualEffectView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefremidze%2FVisualEffectView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefremidze%2FVisualEffectView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefremidze%2FVisualEffectView/lists"}