{"id":15037814,"url":"https://github.com/noblakit01/swiftyshadow","last_synced_at":"2025-04-09T23:33:09.537Z","repository":{"id":62457000,"uuid":"96878625","full_name":"noblakit01/SwiftyShadow","owner":"noblakit01","description":"Helper Shadow Path for UIView in Swift iOS","archived":false,"fork":false,"pushed_at":"2019-09-07T17:50:10.000Z","size":1546,"stargazers_count":63,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T09:48:43.518Z","etag":null,"topics":["cocoapods","elliptical-shadow","inner","inner-shadow","ios","outer","outer-shadow","shadow","swift-3","swift-ios","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/noblakit01.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-07-11T09:56:53.000Z","updated_at":"2024-07-31T16:23:23.000Z","dependencies_parsed_at":"2022-11-02T00:17:00.853Z","dependency_job_id":null,"html_url":"https://github.com/noblakit01/SwiftyShadow","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noblakit01%2FSwiftyShadow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noblakit01%2FSwiftyShadow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noblakit01%2FSwiftyShadow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noblakit01%2FSwiftyShadow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noblakit01","download_url":"https://codeload.github.com/noblakit01/SwiftyShadow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129982,"owners_count":21052675,"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":["cocoapods","elliptical-shadow","inner","inner-shadow","ios","outer","outer-shadow","shadow","swift-3","swift-ios","ui"],"created_at":"2024-09-24T20:35:49.207Z","updated_at":"2025-04-09T23:33:09.518Z","avatar_url":"https://github.com/noblakit01.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyShadow\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f6a7a8d0d6294d82948f9d16a8b14bed)](https://www.codacy.com/app/noblakit01/SwiftyShadow?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=noblakit01/SwiftyShadow\u0026utm_campaign=badger)\n\nHelper Libraries to generate wonderful shadow in Swift iOS.\n\n## Screenshots\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\n      \u003cimg src=\"Screenshot/inner_shadow.png\" width=\"220\"/\u003e\n    \u003c/th\u003e\n    \u003cth\u003e\n      \u003cimg src=\"Screenshot/outer_shadow.png\" width=\"220\"/\u003e\n    \u003c/th\u003e\n    \u003cth\u003e\n      \u003cimg src=\"Screenshot/elliptical_shadow.png\" width=\"220\"/\u003e\n    \u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Requirements\n\n* iOS 8.0+\n* Xcode 8+\n* Swift 4.2\n\n## Installation\n\n### CocoaPods\n\nTo integrate PhotoCollectionView into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'SwiftyShadow', '~\u003e 1.7.0'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Manually\n- Drag and drop `Sources` folder into your project.\n\n## Usage\n\n### Inner Shadow in View\nUse `SwiftyInnerShadowView` class as UIView to make this View has inner shadow.\n\n- Use Storyboard\n\nSet SwiftyInnerShadowView as UIView Class in the storyboard:\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\n      \u003cimg src=\"Tutorial/storyboard.png\" width=\"220\"/\u003e\n    \u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nthen make an outlet\n```\n@IBOutlet weak var testView: SwiftyInnerShadowView!\n```\n\n\n- inner shadow properties\nSet inner shadow propeties through `shadowLayer` of `SwiftyInnerShadowView`\n```\ntestView.shadowLayer.shadowRadius = 4\ntestView.shadowLayer.shadowColor = UIColor.red.cgColor\ntestView.shadowLayer.shadowOpacity = 0.8\ntestView.shadowLayer.shadowOffset = CGSize.zero\ntestView.cornerRadius = 120\n```\n\n### Outer Shadow in View\nYou can set up outer shadow in view with default properties in UIView\n```\nimageView.layer.cornerRadius = 120\nimageView.layer.shadowRadius = 20\nimageView.layer.shadowOpacity = 0.8\nimageView.layer.shadowColor = UIColor.black.cgColor\nimageView.layer.shadowOffset = CGSize.zero\n```\n\nbut shadow doesn't work if view has `clipsToBounds = true`, so just call `generateOuterShadow` function\n```\nimageView.generateOuterShadow()\n```\n\n### Elliptical Shadow\nYou need set up shadow properties first, then call `generateEllipticalShadow`\n```\nimageView.layer.shadowRadius = 20\nimageView.layer.shadowOpacity = 0.8\nimageView.layer.shadowColor = UIColor.black.cgColor\nimageView.layer.shadowOffset = CGSize.zero\n        \nimageView.generateEllipticalShadow()\n```\n\n## TODO\n[Todo](https://github.com/noblakit01/SwiftyShadow/blob/master/TODO.md)\n## License\n[MIT](http://thi.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoblakit01%2Fswiftyshadow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoblakit01%2Fswiftyshadow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoblakit01%2Fswiftyshadow/lists"}