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?
- Login
- Signup
- Forgot password
- Ready for all iPhone screen sizes
- 100% in Swift ๐ถ
- iOS 9.0+
- Xcode 7.3
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
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"
- Download and drop
LFLoginController.swift
in your project. - Congratulations!
//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")
}
}
logo: UIImage?
loginButtonColor: UIColor?
videoURL: NSURL?
We would love for you to contribute to LFLoginController, check the LICENSE
file for more info.
Lucas Farah โ @7farah7 โ [email protected]
Distributed under the MIT license. See LICENSE
for more information.