{"id":18626169,"url":"https://github.com/adboco/polygonimageview","last_synced_at":"2025-11-03T21:30:24.775Z","repository":{"id":29003164,"uuid":"32530132","full_name":"adboco/PolygonImageView","owner":"adboco","description":"PolygonImageView is a subclass of UIImageView that allows put a polygonal frame to an image.","archived":false,"fork":false,"pushed_at":"2015-03-23T08:19:12.000Z","size":2292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T06:11:27.955Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adboco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-19T15:33:14.000Z","updated_at":"2017-02-07T00:59:34.000Z","dependencies_parsed_at":"2022-09-03T18:41:16.761Z","dependency_job_id":null,"html_url":"https://github.com/adboco/PolygonImageView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adboco%2FPolygonImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adboco%2FPolygonImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adboco%2FPolygonImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adboco%2FPolygonImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adboco","download_url":"https://codeload.github.com/adboco/PolygonImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239419008,"owners_count":19635311,"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-11-07T04:37:07.067Z","updated_at":"2025-11-03T21:30:24.732Z","avatar_url":"https://github.com/adboco.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PolygonImageView\nPolygonImageView is a subclass of UIImageView that allows put a polygonal frame to an image.\n\n## Screenshot\n![ScreenShot](https://lh4.googleusercontent.com/-kl4YlYtNxhw/VQtH1d49KHI/AAAAAAAAARQ/LcegcfNwESw/w704-h1250-no/iOS%2BSimulator%2BScreen%2BShot%2B19.3.2015%2B22.26.58.png)\n\n## Installation\nCopy ```PolygonImageView.h``` and ```PolygonImageView.m``` into your Xcode Project.\n\n## Usage\n### Code\n``` objective-c\n#import \"PolygonImageView.h\"\n\n...\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    \n    PolygonImageView *polygonImageView = [[PolygonImageView alloc] initWithFrame:CGRectMake(20, 20, 200, 300) borderColor:[UIColor colorWithRed:0.086 green:0.627 blue:0.522 alpha:1.000] borderWidth:10.0f sides:9];\n    [polygonImageView setCornerRadius:10];\n    [polygonImageView setImage:[UIImage imageNamed:@\"test\"]];\n    \n    [self.view addSubview:polygonImageView];\n}\n```\n### Storyboard\nSet PolygonImageView as ```Class``` in ```Show the Identity inspector -\u003e Custom Class```.\n![Storyboard Example](https://lh6.googleusercontent.com/-JYeaSaHzL2c/VQw_a-lal7I/AAAAAAAAAR8/XX6URpIw9cU/w1382-h1000-no/storyboard.png \"Custom class\")\n\u003cbr\u003eEdit the PolygonImageView properties.\n![Storyboard Example](https://lh6.googleusercontent.com/-nA8NhcUEnZ0/VQw_gVJIEmI/AAAAAAAAASE/RoU528zIfGs/w1456-h1000-no/storyboard2.png \"Polygon Image View: properties\")\n### Animate\n```objective-c\n-(void)viewDidAppear:(BOOL)animated{\n    [super viewDidAppear:animated];\n    [polygonImageView spinAnimationWithDuration:0.6];\n}\n```\n\n## License\nThe MIT License\n```\nCopyright (c) 2015 adboco. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadboco%2Fpolygonimageview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadboco%2Fpolygonimageview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadboco%2Fpolygonimageview/lists"}