{"id":32320276,"url":"https://github.com/olddonkey/shadowimageview","last_synced_at":"2025-10-23T11:53:41.408Z","repository":{"id":55005461,"uuid":"90448051","full_name":"olddonkey/ShadowImageView","owner":"olddonkey","description":"A apple music cover picture shadow style image library","archived":false,"fork":false,"pushed_at":"2019-03-31T11:21:00.000Z","size":18601,"stargazers_count":796,"open_issues_count":0,"forks_count":46,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-23T11:53:29.540Z","etag":null,"topics":["image","shadow","swift","ui"],"latest_commit_sha":null,"homepage":null,"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/olddonkey.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}},"created_at":"2017-05-06T08:14:54.000Z","updated_at":"2025-10-20T22:30:49.000Z","dependencies_parsed_at":"2022-08-14T08:50:34.086Z","dependency_job_id":null,"html_url":"https://github.com/olddonkey/ShadowImageView","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/olddonkey/ShadowImageView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olddonkey%2FShadowImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olddonkey%2FShadowImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olddonkey%2FShadowImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olddonkey%2FShadowImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olddonkey","download_url":"https://codeload.github.com/olddonkey/ShadowImageView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olddonkey%2FShadowImageView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280614536,"owners_count":26360841,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["image","shadow","swift","ui"],"created_at":"2025-10-23T11:53:39.944Z","updated_at":"2025-10-23T11:53:41.403Z","avatar_url":"https://github.com/olddonkey.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShadowImageView\n\n![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)\n![CocoaPods Support](https://img.shields.io/badge/Cocoapods-compatible-4BC51D.svg) \n![Swift Version](https://img.shields.io/badge/Swift-3.0-orange.svg) \n![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg) \n\nA apple music cover picture shadow style image library\n\nShadowImageView is a iOS 10 Apple Music style image view, help you create elegent image with shadow.\n\n\n## Renderings\n\n![ShadowOffsetRight](Screenshots/Rightoffset.png) ![Nooffset](Screenshots/NoOffset.png) ![largeRadius](Screenshots/largeRadius.png) \n\n![lotus](Screenshots/lotus.png) ![Mountain](Screenshots/Mountain.png) ![CD1](Screenshots/CD1.png) ![CD2](Screenshots/CD2.png)\n\n\n## Features\n\n- [x] Auto resizing based on content mode.\n- [x] Easy to change paramenters including offset, radius, alpha etc.\n- [x] Storyboard(Nib) support.\n\n\n## TODO\n\n- [ ] Add support for UIView.\n- [ ] Change the way of layout, to minimize the resource usa.\n\n## Usage\n\n\n### Import\n\n#### CocoaPods\nYou can use [CocoaPods](http://cocoapods.org/) to install `ShadowImageView` by adding it to your `Podfile`:\n\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\npod 'ShadowImageView'\n```\n\n#### Carthage\nCreate a `Cartfile` that lists the framework and run `carthage update`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/YourLibrary.framework` to an iOS project.\n\n```\ngithub \"olddonkey/ShadowImageView\"\n```\n#### Manually\n1. Download and drop ```ShadowImageView.swift``` in your project.  \n2. Congratulations!\n\n### Parameters\n\n```swift\n    /// Gaussian Blur radius, larger will make the back ground shadow lighter (warning: do not set it too large, 2 or 3 for most cases)\n    @IBInspectable\n    public var blurRadius: CGFloat\n    \n    /// The image view contains target image\n    @IBInspectable\n    public var image: UIImage\n    \n    /// Image's corner radius\n    @IBInspectable\n    public var imageCornerRaidus: CGFloat\n    \n    /// shadow radius offset in percentage, if you want shadow radius larger, set a postive number for this, if you want it be smaller, then set a negative number\n    @IBInspectable\n    public var shadowRadiusOffSetPercentage: CGFloat\n    \n    /// Shadow offset value on x axis, postive -\u003e right, negative -\u003e left\n    @IBInspectable\n    public var shadowOffSetByX: CGFloat\n    \n    \n    /// Shadow offset value on y axis, postive -\u003e right, negative -\u003e left\n    @IBInspectable\n    public var shadowOffSetByY: CGFloat\n    \n    /// Shadow alpha value\n    @IBInspectable\n    public var shadowAlpha: CGFloat\n\n```\n\nIf you want to add by storyboard or nib, just drap a UIView into your canvas, and change the class to ShadowImageView, you will see the change in storyboard or nib, it is @IBDesignable supported.\n\n\n## Requirements\n\n- iOS 8.0+\n- Swift 3+\n\nThe main development of ShadowImageView is based on Swift 3.\n\n## Support\n\n### Contact\n\nFollow and contact me through email: olddonkeyblog@gmail.com. If you find an issue, just [open a ticket](https://github.com/olddonkey/ShadowImageView/issues/new) on it. Pull requests are warmly welcome as well.\n\n\n### License\n\nShadowImageView is released under the MIT license. See LICENSE for details.\n\n\n### Kudos\n\nThanks to [PierrePerrin](https://github.com/PierrePerrin), his [PPMusicImageShadow](https://github.com/PierrePerrin/PPMusicImageShadow) inspires me, though the implementation is diffrent, the main idea comes from GaussianBlur.\n\n\n### App using ShadowImageView\n\n1. [优读](https://itunes.apple.com/us/app/优读-订阅收藏和碎片知识管理神器/id1175225244) \n\n    ![youdu](Screenshots/youdu.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folddonkey%2Fshadowimageview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folddonkey%2Fshadowimageview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folddonkey%2Fshadowimageview/lists"}