{"id":23815223,"url":"https://github.com/gtokman/viewtilities","last_synced_at":"2025-09-06T23:32:18.743Z","repository":{"id":56926110,"uuid":"166470734","full_name":"gtokman/Viewtilities","owner":"gtokman","description":"A collection of UIView utilities.","archived":false,"fork":false,"pushed_at":"2019-01-21T16:36:39.000Z","size":74,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T23:21:10.321Z","etag":null,"topics":["cocoapods","swift","uiview","uiviewcontroller"],"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/gtokman.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":"2019-01-18T20:49:25.000Z","updated_at":"2023-02-14T18:53:07.000Z","dependencies_parsed_at":"2022-08-20T22:40:07.814Z","dependency_job_id":null,"html_url":"https://github.com/gtokman/Viewtilities","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtokman%2FViewtilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtokman%2FViewtilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtokman%2FViewtilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtokman%2FViewtilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gtokman","download_url":"https://codeload.github.com/gtokman/Viewtilities/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232150097,"owners_count":18479580,"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":["cocoapods","swift","uiview","uiviewcontroller"],"created_at":"2025-01-02T04:15:25.397Z","updated_at":"2025-01-02T04:15:26.059Z","avatar_url":"https://github.com/gtokman.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Viewtilities\n\n**Viewtilities** is a collection of `UIView` utilities. It provides useful extensions that will speed up your workflow\nwhen building your UI.\n\n[![Version](https://img.shields.io/cocoapods/v/Viewtilities.svg?style=flat)](https://cocoapods.org/pods/Viewtilities)\n[![License](https://img.shields.io/cocoapods/l/Viewtilities.svg?style=flat)](https://cocoapods.org/pods/Viewtilities)\n[![Platform](https://img.shields.io/cocoapods/p/Viewtilities.svg?style=flat)](https://cocoapods.org/pods/Viewtilities)\n\n## Contents\n- [Installation](#installation)\n- [UIView](#view-examples)\n    - [Round Corners](#round-corners)\n    - [Shadow](#shadow)    \n    - [Border](#border)        \n    - [Chaining](#chaining)\n- [Custom Views](#custom-view-examples)\n    - [BaseView](#baseview)\n    - [ModifiableView](#modifiableview)\n- [UIViewControllers](#view-controller-examples)\n\n\n## View Examples\n\n#### Round Corners\n\n```swift\nmyView.add(\n    .cornerRadius(.custom(corners: [.all], radius: 10))\n)\n```\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"174\" alt=\"round\" src=\"https://user-images.githubusercontent.com/12258850/51486857-cd08eb80-1d6f-11e9-9f52-992a57acf8dc.png\"\u003e\n\u003c/p\u003e\n\n#### Shadow\n\n```swift\nmyView.add(\n    .shadow(.custom(offset: .init(width: 0, height: 2), radius: 5, opacity: 0.25, color: .black))\n)\n```\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"168\" alt=\"shadow\" src=\"https://user-images.githubusercontent.com/12258850/51486858-cd08eb80-1d6f-11e9-8ed5-c1d12968896e.png\"\u003e\n\u003c/p\u003e\n\n#### Border\n\n```swift\nmyView.add(\n    .border(.custom(color: .black, width: 1))\n)\n```\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"189\" alt=\"border\" src=\"https://user-images.githubusercontent.com/12258850/51486856-cc705500-1d6f-11e9-8de9-50206e280c46.png\"\u003e\n\u003c/p\u003e\n\n#### Chaining\n\n```swift\nmyView.add(\n    .cornerRadius(.custom(corners: [.all], radius: 10)),\n    .shadow(.custom(offset: .init(width: 0, height: 2), radius: 5, opacity: 0.25, color: .black)),\n    .border(.default)\n)\n```\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"165\" alt=\"all\" src=\"https://user-images.githubusercontent.com/12258850/51486855-cc705500-1d6f-11e9-8105-4069065b6c64.png\"\u003e\n\u003c/p\u003e\n\n## View Controller Examples\n\n#### Coming soon\n\n## Custom View Examples\n\n#### BaseView - Coming Soon\n\n#### ModifiableView - Coming Soon\n\n## Installation\n\nViewtilities is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'Viewtilities'\n```\nThen run pod install.\n\nDon't forget to import `Viewtilities` in every file you'd like to use `Viewtilities`.\n\n\n## Author\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/bestgaryever.svg?style=social)](https://twitter.com/bestgaryever)\n\n[![Twitter Follow](https://img.shields.io/github/followers/gtokman.svg?style=social\u0026label=Follow)](https://github.com/gtokman)\n\n## License\n\nViewtilities is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtokman%2Fviewtilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgtokman%2Fviewtilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtokman%2Fviewtilities/lists"}