{"id":17928495,"url":"https://github.com/anthonylatsis/sombra","last_synced_at":"2025-04-03T09:43:49.176Z","repository":{"id":62455796,"uuid":"140771546","full_name":"AnthonyLatsis/Sombra","owner":"AnthonyLatsis","description":"A simple retroaction on CALayer to support vibrant image projections as shadows.","archived":false,"fork":false,"pushed_at":"2018-07-18T17:42:22.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T18:46:48.829Z","etag":null,"topics":["calayer","image","ios","layer","shadow","shadows","swift","xcode"],"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/AnthonyLatsis.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":"2018-07-12T22:44:39.000Z","updated_at":"2023-07-28T06:57:32.000Z","dependencies_parsed_at":"2022-11-02T00:00:42.494Z","dependency_job_id":null,"html_url":"https://github.com/AnthonyLatsis/Sombra","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyLatsis%2FSombra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyLatsis%2FSombra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyLatsis%2FSombra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyLatsis%2FSombra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnthonyLatsis","download_url":"https://codeload.github.com/AnthonyLatsis/Sombra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981151,"owners_count":20863825,"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":["calayer","image","ios","layer","shadow","shadows","swift","xcode"],"created_at":"2024-10-28T21:03:30.389Z","updated_at":"2025-04-03T09:43:49.156Z","avatar_url":"https://github.com/AnthonyLatsis.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sombra\n\nA light native-style retroaction on `CALayer` to support vibrant image projections as shadows.\n\n## Usage\n\nTo have an image projection instead of a plane color as a shadow, you use `shadowImage`. The rest is set up the usual way using existing shadow properties.\n\n``` swift\nview.layer.shadowOpacity = 0.8\nview.layer.shadowOffset = CGSize(width: 0, height: 15)\nview.layer.shadowRadius = 30\nview.layer.shadowImage = UIImage().cgImage\n```\n### Considerations\n\nWhile using an image projection as a shadow, the value of `shadowOpacity` will be cached and the property itself set to zero. This is done for the regular shadow not to appear. Setting the image to `nil` will leave you with a regular shadow, if any (`shadowOpacity \u003e 0`).  \nThe image projection currently doesn't support animating through shadow properties.\n\n## Requirements\n\n* Xcode 9 +\n* Swift 4 +\n* iOS 10 +\n\n## Installation\n\nSombra can be integrated using [CocoaPods](https://cocoapods.org/). Specify it in your `Podfile` and run `$ pod install`.\n\n``` ruby\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target\u003e' do\n    pod 'Sombra'\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonylatsis%2Fsombra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonylatsis%2Fsombra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonylatsis%2Fsombra/lists"}