- April 27, 2024
- Mins Read
[Not maintained anymore]
I switched to Flutter, so I don’t maintain the library anymore.
DCKit 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.
Written on Swift.
CocoaPods recommended to use DCKit.
pod
record to your Podfile:pod 'DCKit'
pod 'DCKit', '<= 1.0.11'
pod 'DCKit', :git => 'https://github.com/agordeev/DCKit.git', :branch => 'swift23'
pod 'DCKit', '<= 1.0.4'
use_frameworks!
keyword to your Podfile. The library is written on Swift, so this is a mandatory.pod install
.UIButton
) onto storyboard: DCBorderedButton
. Also change module to DCKit
if you’ve installed the library via CocoaPods. You’ll notice a border appeared around the button: Please download the latest code version and run DCKitSample.xcodeproj
to test out all the features it offers.
Basically, all of the classes are pretty straightforward and don’t worth describing. Most of them you can see in the demo project.
I’ll describe a few of them here though.
Very useful control, I widely use it in my projects as a separator between views.
Base text field for all the mandatory text fields. Highlights the text field if the entered value is false.
By default it considers the empty value as invalid. You can override this behaviour by subclassing this class and overriding isValid
method.
This 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
Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...