{"id":31952875,"url":"https://github.com/shevakuilin/skarchcutter","last_synced_at":"2025-10-14T13:25:32.657Z","repository":{"id":62453859,"uuid":"86418298","full_name":"shevakuilin/SKArchCutter","owner":"shevakuilin","description":"SKArchCutter是一个可自选切割角的圆角切割工具，同时支持UIView、UIImageView、UIButton和UILabel的单角切圆/选角拱形切圆/全角切圆，并且避免了UIImageView使用系统圆角所导致的离屏渲染的问题，以及确保layer对象的masksToBounds属性始终为NO，从而使得项目中大量使用圆角时的性能得到很大程度的优化, 最重要的是使用简单、方便。","archived":false,"fork":false,"pushed_at":"2019-08-23T07:36:36.000Z","size":348,"stargazers_count":82,"open_issues_count":0,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-03T03:08:53.529Z","etag":null,"topics":["imagecutter","objective-c","uiimage"],"latest_commit_sha":null,"homepage":"","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/shevakuilin.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-03-28T05:25:08.000Z","updated_at":"2025-04-30T03:37:04.000Z","dependencies_parsed_at":"2022-11-01T23:46:46.266Z","dependency_job_id":null,"html_url":"https://github.com/shevakuilin/SKArchCutter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/shevakuilin/SKArchCutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevakuilin%2FSKArchCutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevakuilin%2FSKArchCutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevakuilin%2FSKArchCutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevakuilin%2FSKArchCutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shevakuilin","download_url":"https://codeload.github.com/shevakuilin/SKArchCutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shevakuilin%2FSKArchCutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018708,"owners_count":26086606,"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-14T02:00:06.444Z","response_time":60,"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":["imagecutter","objective-c","uiimage"],"created_at":"2025-10-14T13:24:58.508Z","updated_at":"2025-10-14T13:25:32.651Z","avatar_url":"https://github.com/shevakuilin.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简述\n\n\nSKArchCutter是一个可自选切割角的圆角切割工具，同时支持UIView、UIImageView、UIButton和UILabel的单角切圆/选角拱形切圆/全角切圆，并且避免了UIImageView使用系统圆角所导致的离屏渲染的问题，以及确保layer对象的masksToBounds属性始终为NO，从而使得项目中大量使用圆角时的性能得到很大程度的优化, 最重要的是使用简单、方便。如果觉得还不错，star支持下吧~\n\n![](https://img.shields.io/badge/platform-iOS-green.svg)\n![](https://img.shields.io/badge/pod-v1.6.0.beta.1-blue.svg)\n![](https://img.shields.io/badge/language-ObjectiveC-purple.svg)\n![](https://img.shields.io/badge/moduleVersion-v0.0.6-red.svg)\n\n# 最新更新\n\n- [Swift 版](https://github.com/shevakuilin/SKArchCutter-Swift)\n\n- 解决使用Masonry布局无法及时获取frame信息的兼容问题\n\n- 解决使用border而导致的失效问题\n\n- 改为类方法，使用更加简单方便\n\n- 注意：如果之前设置了`border`和`backgroundColor`请取消，关闭`masksToBounds`(如果打开了话), 请在方法中进行设置\n\n### 效果图 \n\u003cimg src=\"https://upload-images.jianshu.io/upload_images/2660903-f46c568bb12c6b9d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/375/format/webp\" width=\"370\" height =\"665\" /\u003e\n\n\n### 测试性能\n\u003cimg src=\"https://upload-images.jianshu.io/upload_images/2660903-4217dfeb2620cf79.gif?imageMogr2/auto-orient/strip%7CimageView2/2/w/372/format/webp\" width=\"370\" height =\"665\" /\u003e\n\n\n\n# 如何开始\n\n\n1.从GitHub上Clone--\u003eSKArchCutter，然后查看Demo\n\n2.直接将目录下的SKArchCutter拷贝到工程中，或在podfile文件夹中添加 ```pod 'SKArchCutter'```\n\n3.如果觉得还不错，点个star吧~\n\n\n# 使用方法\n\n#### 头文件导入\n```objectivec\n#import \"SKArchCutter.h\"\n```\n\n#### 进行圆角切割\n\n\nUIView/UIButton/UILabel\n```objectivec\n[SKArchCutter cuttingView:self.centerView cuttingDirection:UIRectCornerTopRight | UIRectCornerTopLeft cornerRadii:self.centerView.frame.size.height / 2 borderWidth:1 borderColor:[UIColor purpleColor] backgroundColor:[UIColor redColor]];\n```\n\nUIImageView\n```objectivec\n[SKArchCutter cuttingImageView:self.topImageView cuttingDirection:UIRectCornerAllCorners cornerRadii:self.topImageView.frame.size.height / 2 borderWidth:1 borderColor:[UIColor blackColor] backgroundColor:[UIColor clearColor]];\n```\n\n\n### 感谢你花时间阅读以上内容, 如果这个项目能够帮助到你，记得告诉我\n\n\nEmail: shevakuilin@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshevakuilin%2Fskarchcutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshevakuilin%2Fskarchcutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshevakuilin%2Fskarchcutter/lists"}