- Easily load views and view controllers programmticly
- Directly manipulate extended view propertys in the storyboard
- Easily outsource views and reuse them in the storyboard
- Organize your code with a simple MVP architecture
pod 'SwiftEssentials', :git => 'https://github.com/Limoo/SwiftEssentials.git'
import SwiftEssentials
//Load a view controller from the main storyboard
let customViewController = MyCustomViewController.loadFromStoryboard()
//Load a view controller from a custom storyboard called 'Settings'
let settingsViewController = SettingsViewController.loadFromStoryboard(identifier: "Settings")
//Load a view. Important to give the variable the explicit type. In this case CustomView
let customView: MyCustomView = MyCustomView.loadFromNib()
Create a new view in the storyboard and assign one of the current supported UI elements.
EssentialView
EssentialButton
EssentialImageView
EssentialLabel
EssentialMapView
EssentialTextField
@IBDesignable class MyCustomView: ReusableView {
override func nibNameForView() -> String {
return "CustomView"
}
}
class MyCustomPresenter : BasePresenter { }
class MyCustomViewController: BaseViewController<MyCustomPresenter> {
override func viewDidLoad() {
super.viewDidLoad()
}
}