{"id":16482762,"url":"https://github.com/shaps80/cornermasking","last_synced_at":"2025-10-27T17:31:58.539Z","repository":{"id":15340237,"uuid":"18070825","full_name":"shaps80/CornerMasking","owner":"shaps80","description":"SPXMasking is category on CALayer that allows you to specify different a corner radius for each corner of a CALayer.","archived":false,"fork":false,"pushed_at":"2016-04-09T14:49:43.000Z","size":78,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T06:23:54.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/shaps80.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-24T17:08:41.000Z","updated_at":"2024-02-12T07:40:21.000Z","dependencies_parsed_at":"2022-08-26T10:31:24.082Z","dependency_job_id":null,"html_url":"https://github.com/shaps80/CornerMasking","commit_stats":null,"previous_names":["shaps80/spxmasking"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FCornerMasking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FCornerMasking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FCornerMasking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FCornerMasking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaps80","download_url":"https://codeload.github.com/shaps80/CornerMasking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238535882,"owners_count":19488613,"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":[],"created_at":"2024-10-11T13:11:55.872Z","updated_at":"2025-10-27T17:31:58.240Z","avatar_url":"https://github.com/shaps80.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Purpose\n--------------\n\nSPXMasking is category on CALayer that allows you to specify different a corner radius for each corner of a CALayer.\n\n\nSupported OS \u0026 SDK Versions\n-----------------------------\n\n* Earliest tested deployment target - iOS 8.0\n\n\nARC Compatibility\n------------------\n\nThe SPXMasking category will work correctly ONLY with ARC enabled.\n\n\n\nInstallation\n--------------\n\nTo use the SPXMasking category in an app, just drag the category files into your project and import the header file into any class where you wish to make use of the SPXMasking functionality.\n\nUsage\n-------\n\nTo use, simple invoke setCornerRadii on any CALayer class\n\n\t\tself.view.layer.cornerRadii = SPXCornerRadiiMake(20, 60, 0, 120);\n\n\nSPXMasking Extensions\n----------------------\n\nThis method will apply a corner radius to the specified corners of the CALayer\n\n    - (void)setCornerRadii:(SPXCornerRadii)cornerRadii;\n\nThis method will return the current mask path. This is useful when needing to set shadowPath on a layer to optimize shadow drawing\n\n\t\t- (UIBezierPath *)maskPath;\n\nThis method is provided as a convenience for specifying corner radii\n\n    extern SPXCornerRadii SPXCornerRadiiMake(CGFloat bottomLeft, CGFloat topLeft, CGFloat topRight, CGFloat bottomRight);\n\nThis method will compare two SPXCornerRadii structures and return YES if they are equal, NO otherwise\n\n\textern bool SPXCornerRadiiEquals(SPXCornerRadii radii1, SPXCornerRadii radii2);\n\n\nExample\n-------\n\n\u003cimg src=\"http://shaps.me/assets/img/blog/masking.jpg\" width=160 height=284 alt=\"Masking Example\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaps80%2Fcornermasking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaps80%2Fcornermasking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaps80%2Fcornermasking/lists"}