{"id":2168,"url":"https://github.com/agordeev/DCKit","last_synced_at":"2025-08-02T23:32:04.799Z","repository":{"id":31712388,"uuid":"35278158","full_name":"agordeev/DCKit","owner":"agordeev","description":"Set of iOS controls with useful IBInspectable properties. Written on Swift.","archived":false,"fork":false,"pushed_at":"2020-09-21T07:34:47.000Z","size":919,"stargazers_count":142,"open_issues_count":3,"forks_count":17,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-05-21T02:31:10.335Z","etag":null,"topics":["ibdesignable","ibinspectable","ios","storyboard","swift","uikit","xcode"],"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/agordeev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-05-08T12:30:32.000Z","updated_at":"2024-04-06T07:47:56.000Z","dependencies_parsed_at":"2022-07-12T09:24:04.610Z","dependency_job_id":null,"html_url":"https://github.com/agordeev/DCKit","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agordeev%2FDCKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agordeev%2FDCKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agordeev%2FDCKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agordeev%2FDCKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agordeev","download_url":"https://codeload.github.com/agordeev/DCKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503139,"owners_count":17930519,"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":["ibdesignable","ibinspectable","ios","storyboard","swift","uikit","xcode"],"created_at":"2024-01-05T20:16:06.433Z","updated_at":"2024-12-06T17:30:48.104Z","avatar_url":"https://github.com/agordeev.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"# DCKit\n\n[![Version](https://img.shields.io/cocoapods/v/DCKit.svg?style=flat)](http://cocoapods.org/pods/DCKit)\n[![License](https://img.shields.io/cocoapods/l/DCKit.svg?style=flat)](http://cocoapods.org/pods/DCKit)\n[![Platform](https://img.shields.io/cocoapods/p/DCKit.svg?style=flat)](http://cocoapods.org/pods/DCKit)\n\n[Not maintained anymore]\n\n**I switched to Flutter, so I don't maintain the library anymore.**\n\n---\n\nDCKit is a set of *@IBDesignable* iOS controls (buttons, text fields, text views, labels, circle views, hairline views etc.), which have useful *@IBInspectable* properties. They allows you to build a nice screens, see a result directly on Xcode Interface Builder.\n\nWritten on Swift.\n\n## Preview\n\n[![DCKit preview](Images/screenshot_001.png)](Images/screenshot_001.png)\n\n## Installation\n\n### Cocoapods\n\n[CocoaPods](http://www.cocoapods.org) recommended to use DCKit.\n\n1. Add `pod` record to your *Podfile:*\n  * **Swift 4.2 and above**: `pod 'DCKit'`\n  * **Swift 3 and Swift 4**: `pod 'DCKit', '\u003c= 1.0.11'`\n  * **Swift 2.3**: `pod 'DCKit', :git =\u003e 'https://github.com/agordeev/DCKit.git', :branch =\u003e 'swift23'`\n  * **Swift 2.2** and below: `pod 'DCKit', '\u003c= 1.0.4'`\n2. Add `use_frameworks!` keyword to your *Podfile*. The library is written on Swift, so this is a mandatory.\n3. Install the pod(s) by running `pod install`.\n\n### Source files\n\n1. Download the [latest code version](https://github.com/agordeev/DCKit/archive/master.zip) or add the repository as a git submodule to your git-tracked project.\n2. Drag and drop the **Classes** directory from the archive in your project navigator. Make sure to select *Copy items* when asked if you extracted the code archive outside of your project.\n\n## How to use\n\n1. Add a control (e.g. `UIButton`) onto storyboard:\n[![Add a control (e.g. UIButton) onto storyboard](Images/screenshot_002.png)](Images/screenshot_002.png)\n2. Change the button's class to `DCBorderedButton`. Also change module to `DCKit` if you've installed the library via CocoaPods. You'll notice a border appeared around the button:\n[![Change the button's class to DCBorderedButton](Images/screenshot_003.png)](Images/screenshot_003.png)\n3. Now you're able to customize the button from IB directly:\n[![Now you're able to customize the button from IB directly](Images/screenshot_004.png)](Images/screenshot_004.png)\n\nPlease download the [latest code version](https://github.com/agordeev/DCKit/archive/master.zip) and run `DCKitSample.xcodeproj` to test out all the features it offers.\n\n## Documentation\n\nBasically, all of the classes are pretty straightforward and don't worth describing. Most of them you can see in the demo project.\n\nI'll describe a few of them here though.\n\n#### DCHairlineView\n\nVery useful control, I widely use it in my projects as a separator between views.\n\n#### DCMandatoryTextField\n\nBase text field for all the mandatory text fields. Highlights the text field if the entered value is false.\n\nBy default it considers the empty value as invalid. You can override this behaviour by subclassing this class and overriding `isValid` method.\n\n#### DCMandatoryEmailTextField\n\nThis field is also checks if the entered value is a valid email address. It uses a regexp taken from here: http://stackoverflow.com/questions/5428304/email-validation-on-textfield-in-iphone-sdk\n\n## Requirements\n\n* Xcode 6 or above\n* iOS 8 or above\n* Swift 2.0 and above\n\n## Author\n\n[Andrey Gordeev](http://stackoverflow.com/users/1321917/andrey-gordeev)\n\n## License\n\nThis project is under MIT license. For more information, see `LICENSE` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagordeev%2FDCKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagordeev%2FDCKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagordeev%2FDCKit/lists"}