Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

SwiftEssentials

Features:

  • 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

Add SwiftEssentials to your podfile.

pod'SwiftEssentials',:git=>'https://github.com/Limoo/SwiftEssentials.git'

Import SwiftEssentials.

import SwiftEssentials

Easily load views and view controller with their IBOutlet's.

//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()

Directly manipulate attributes like corner radius and shadows in the storyboard designer.

Create a new view in the storyboard and assign one of the current supported UI elements.

EssentialView
EssentialButton
EssentialImageView
EssentialLabel
EssentialMapView
EssentialTextField

Reuse views in the storyboard with a single code base.

@IBDesignableclassMyCustomView:ReusableView{overridefunc nibNameForView()->String{return"CustomView"}}

Structure your project with a very basic MVP architecture.

classMyCustomPresenter:BasePresenter{}classMyCustomViewController:BaseViewController<MyCustomPresenter>{overridefunc viewDidLoad(){
super.viewDidLoad()}}

About

SwiftEsstentials provides architectures and UIKit extensions to make your UI workflow pleasant

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages