Giter Site home page Giter Site logo

awesome-labs / lflogincontroller Goto Github PK

View Code? Open in Web Editor NEW
156.0 9.0 27.0 19.91 MB

Customizable login screen, written in Swift ๐Ÿ”ถ

License: MIT License

Swift 97.51% Ruby 1.43% Objective-C 1.06%
swift swift-image login-screen ios signup

lflogincontroller's Introduction

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

lflogincontroller's People

Contributors

lfarah avatar vsouza avatar younata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lflogincontroller's Issues

Password Reset

Function forgotPasswordTapped doesn't pass any information we can work on to reset the password, the strict minimum should be the email account for example.

LFLoginController.swift Line 22
func forgotPasswordTapped()
Should be :
func forgotPasswordTapped(email: String)

Best Regards

Auto Layout Unsupported

I tried to use the library but the auto layout is not implemented I guess for landscape mode.

support swift 3/4 ?

Amazing project my friends , please would be possible know if work with swift 3 or swift 4 ? .
thanks for this amazing work

Navigation bar disappears after the login

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

        self.navigationController?.setNavigationBarHidden(false, animated: true)
}

1Password extension

Important: isAppExtensionAvailable uses - [UIApplication canOpenURL:]. Since iOS 9 it is recommended that you add the custom URL scheme, org-appextension-feature-password-management, in your target's info.plist as follows:

Dependecies

Add this repo as a dependencies 'AutoCompleteTextField' so it would always be up to date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.