Skip to content

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

License

Notifications You must be signed in to change notification settings

Limoo/SwiftEssentials

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

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.

@IBDesignable class MyCustomView: ReusableView {
  
    override func nibNameForView() -> String {
        return "CustomView"
    }

}

Structure your project with a very basic MVP architecture.

class MyCustomPresenter : BasePresenter { }

class MyCustomViewController: BaseViewController<MyCustomPresenter> {

  override func viewDidLoad() {
    super.viewDidLoad()
  }

}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published