Skip to content
Wes Byrne edited this page Oct 23, 2015 · 5 revisions

Welcome to the CBToolkit wiki!

Check out the example app in action here Or you can try it yourself. Clone the repo and open CBApp to see some examples of what you can do with the CBToolkit.

View the documentation

Adding to your project

Manual
Download or clone the files and drop CBToolkit/CBToolkit into your project. Your good to go.

CocoaPods
CBToolkit is now available on cocoapods Add pod 'CBToolkit', '~> 0.0' to your podfile and run pod update.

Using the views

CBToolkit is designed to help you creat great UIs without extra code. Thanks to IBDesignables many visual effects can me set right in the storyboard. Simple drop the appropriate UIKit element (UIView, UIButton, UIImageView...) into your view controller and change the class to the CB- equivilent.

For example, to add a CBProgressView just drop in a UIVIew, open the attributes inspector in the right utilities panel and set the class to CBProgressView. The custom properties will now be available right along side the standard backgroundColor and such.

And if you really have the urge to type, you can always create CBToolkit views progamatically just like anything else.

Views

  • CBView : Round those corners, add a border, event drop some shadow all from the storyboard/IB inspector.
  • CBBorderView: Add borders to each side of a view as needed.
  • CBGradientView: Draw a gradient as a background or an overlay with zero code.
  • CBImageView: Style your imageViews and even load remote image with a url.

More about views

Buttons

  • CBButton : Give your buttons some style and bounce.
  • CBIconButton: From the classic hamburder to arrows, this button render it's icon with seamless transition.
  • CBButtonView: A custom UIControl so you can turn any view into a button. Ctrl drag to link it to you code.

More about buttons

TextViews

  • CBTextField : Style your text views without a single line. Make your fields stand out right in the storyboard.
  • CBTextView: Let this textview take care of resizign to fit its text. You can also add a placholder

More about textview

Loaders

  • CBActivityIndicator : A clean and customizable replacement for UIActivityIndicator
  • CBProgressView: Downloading or uploading? Show the prgress in style.

More about progress views

Collection View Layouts

  • CBCollectionViewLayout : A full features layout with waterfall, aspect ratio sizing, drag and drop and more.
  • CBSliderCollectionViewLayout: A simple full screen horizontal layout with autoscrolling.

More about collection view layouts

Utils

  • CBPhotoFetcher : A image fetching util for retrieving and caching iamges with a url.
  • CBDate extension: A collection of helpful date function and formatters.
  • CBPhoneNumber: Just initialize with a string, then format or call the number.

More about Utils