[![CI Status](http://img.shields.io/travis/Brian Voong/LBTAComponents.svg?style=flat)](https://travis-ci.org/Brian Voong/LBTAComponents)
LBTAComponents is a very simple library of components I use to build out production applications. The ultimate goal of open sourcing this chunk of code is to speed up the teaching and recording process for all the tutorials on my YouTube channel LetsBuildThatApp.
This project is continuously evolving, but as of right now the important components are:
- DatasourceController - Think of this as UICollectionViewController on steroids. No longer do we have to register cells with their own ids. Providing a simple subclass of Datasource will render out the list items.
- CachedImageView - Loading images and caching them is quite tedious, this is my basic implementation that I'm providing. For more on image caching, watch my tutorial.
- UIView anchors extension - Let's face it, the amount of code required to place views onto the screen isn't great. With this extension, you can anchor any view to any other view with just one line of code, albeit you need a few minutes to learn it.
Here's how easy it is to render a list
import LBTAComponents
class BasicController: DatasourceController {
override func viewDidLoad() {
super.viewDidLoad()
let words = Datasource()
words.objects = ["Hello", "How", "are", "you", "today", "?"]
self.datasource = words
}
}
OK, so that's not a very interesting list you say. Providing some additional cell classes, you can easily modify your list to look like:
To run the example project, clone the repo, and run pod install
from the Example directory first.
This project requires Xcode 7+ running a target of iOS 9.1+ along with Cocoapods.
LBTAComponents is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LBTAComponents"
Brian Voong, letsbuildthatapp@gmail.com
LBTAComponents is available under the MIT license. See the LICENSE file for more info.