{"id":26869518,"url":"https://github.com/jakemarsh/jmlayerstyles","last_synced_at":"2025-10-09T05:36:52.903Z","repository":{"id":141999018,"uuid":"3274160","full_name":"jakemarsh/JMLayerStyles","owner":"jakemarsh","description":"A small library built around the concept of a UIView in a similar way to what you would in a Photoshop layer.","archived":false,"fork":false,"pushed_at":"2012-10-24T21:30:23.000Z","size":147,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-29T06:19:37.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://deallocatedobjects.com","language":"Objective-C","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/jakemarsh.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-26T14:02:35.000Z","updated_at":"2022-02-06T01:01:53.000Z","dependencies_parsed_at":"2023-03-12T12:00:44.717Z","dependency_job_id":null,"html_url":"https://github.com/jakemarsh/JMLayerStyles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jakemarsh/JMLayerStyles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakemarsh%2FJMLayerStyles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakemarsh%2FJMLayerStyles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakemarsh%2FJMLayerStyles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakemarsh%2FJMLayerStyles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakemarsh","download_url":"https://codeload.github.com/jakemarsh/JMLayerStyles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakemarsh%2FJMLayerStyles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000741,"owners_count":26082932,"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-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-03-31T06:17:36.921Z","updated_at":"2025-10-09T05:36:52.880Z","avatar_url":"https://github.com/jakemarsh.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## JMLayerStyles\n\n**OMG A SPECIAL NOTE!** While I am using this in a couple places in my own projects, I wouldn't recommend just tossing it into yours just yet. I'm open-sourcing it now mainly to get some thoughts from everyone on where to take it. It's still very custom to my own needs.\n\n\n\n`JMLayerStyles` is a set of tools built around a small little UIView subclass that supports being styled by invoking methods whose parameters are quite similar to those found on Photoshop's \"Layer Styles\" panel.\n\nThe end result looks like this:\n\n``` objc\n\nJMStylableView *styledView = [[JMStylableView alloc] initWithFrame:CGRectMake(10.0, 30.0, self.window.bounds.size.width - 20.0, self.window.bounds.size.height - 40.0)];\n\n[styledView addLayerStyle:[DropShadowLayerStyle dropShadowStyleWithColor:[UIColor colorWithWhite:0.0 alpha:0.56]\n                                                          distance:4.0\n                                                              size:4.5]];\n\n[styledView addLayerStyle:[InnerShadowLayerStyle innerShadowStyleWithColor:[UIColor colorWithRed:71.0/255.0 green:159.0/255.0 blue:243.0/255.0 alpha:1.0]\n                                                             opacity:1.0\n                                                            distance:1.0\n                                                               choke:0.0\n                                                                size:0.0]];\n\n[styledView addLayerStyle:[StrokeLayerStyle strokeStyleWithColor:[UIColor colorWithRed:3.0/255.0 green:25.0/255.0 blue:47.0/255.0 alpha:1.0]\n                                                   opacity:1.0\n                                                      size:1.0]];\n\nNSArray *colors = [NSArray arrayWithObjects:[UIColor colorWithRed:19.0/255.0 green:148.0/255.0 blue:213.0/255.0 alpha:1.0], [UIColor colorWithRed:10.0/255.0 green:71.0/255.0 blue:131.0/255.0 alpha:1.0], nil];\n[styledView addLayerStyle:[GradientOverlayLayerStyle gradientStyleWithColors:colors style:GradientOverlayStyleLinear]];\n\nstyledView.cornerRadius = 10.0;\n\n[self.window addSubview:styledView];\n\n[styledView release];\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakemarsh%2Fjmlayerstyles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakemarsh%2Fjmlayerstyles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakemarsh%2Fjmlayerstyles/lists"}