awesome-labs / Lflogincontroller
Programming Languages
Projects that are alternatives of or similar to Lflogincontroller
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
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
- Download and drop
LFLoginController.swift
in your project. - 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.