Skip to content

awesome-labs/LFLoginController

Repository files navigation

LFLoginController

Customizable login screen, written in Swift

Swift Version License Carthage compatible CocoaPods Compatible Platform

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

Features

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

Requirements

  • iOS 9.0+
  • Xcode 7.3

Installation

CocoaPods

You can use CocoaPods to install LFLoginController by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!
pod 'LFLoginController'

To get the full benefits import LFLoginController wherever you import UIKit

import UIKit
import LFLoginController

Carthage

Create a Cartfile that lists the framework and run carthage bootstrap. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/LFLoginController.framework to an iOS project.

github "awesome-labs/LFLoginController"

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