- 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
letcustomViewController=MyCustomViewController.loadFromStoryboard()
//Load a view controller from a custom storyboard called 'Settings'
letsettingsViewController=SettingsViewController.loadFromStoryboard(identifier:"Settings")
//Load a view. Important to give the variable the explicit type. In this case CustomView
letcustomView: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@IBDesignableclassMyCustomView:ReusableView{overridefunc nibNameForView()->String{return"CustomView"}}classMyCustomPresenter:BasePresenter{}classMyCustomViewController:BaseViewController<MyCustomPresenter>{overridefunc viewDidLoad(){
super.viewDidLoad()}}