LFLoginController 0.3.1

LFLoginController 0.3.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2018
SPMSupports SPM

Maintained by Lucas Farah, Neil Francis Ramirez Hipona.



LFLoginController

Customizable login screen, written in Swift


Creating Login screens is boring and repetitive. What about implementing and customizing them in less then 10 lines of code?

Features

  • [x] Login
  • [x] Signup
  • [x] Forgot password
  • [x] Ready for all iPhone screen sizes
  • [x] 100% in Swift 🔶

Requirements

  • iOS 9.0+
  • Xcode 7.3

Installation

Manually

  1. Download and drop LFLoginController.swift in your project.
  2. Congratulations!

Usage example

//1. Create a LFLoginController instance
let loginController = LFLoginController()

//2. Present the timePicker
self.navigationController?.pushViewController(loginController, animated: true)

//3. Implement the LFLoginControllerDelegate
extension ExampleViewController: LFLoginControllerDelegate {

    func loginDidFinish(email: String, password: String, type: LFLoginController.SendType) {

        print(email)
        print(password)
        print(type)
    }
    
    func forgotPasswordTapped() {
    
        print("forgot password")
  }

}

Customizations

  • logo: UIImage?
  • loginButtonColor: UIColor?
  • videoURL: NSURL?

Contribute

We would love for you to contribute to LFLoginController, check the LICENSE file for more info.

Meta

Lucas Farah – @7farah7[email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/awesome-labs