Customizable login screen, written in Swift 🔶

Overview

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

Comments
  • Password Reset

    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

    opened by johnLegasse 2
  • Error: Only Members of Classes May Be Dynamic

    Error: Only Members of Classes May Be Dynamic

    The Swift Programming Language has been updated and due to this change, only members of classes may be dynamic. Thus, the "AutoCompleteTextFieldProtocols.swift," will throw errors describing: "Only Members of Classes May Be Dynamic."

    This change conforms to all new Swift Programming Language changes and allows compilation without errors.

    opened by revzim 1
  • Re-Enable carthage support

    Re-Enable carthage support

    Also update for swift 4

    (Carthage support was removed ages ago, this is re-adding it).

    Also, the shield for the unit tests was pointing at the wrong thing, so I removed it. Which is fine, because the tests weren't actually testing the right code (that has now been fixed).

    opened by younata 1
  • Closes #2 Carthage compatibility

    Closes #2 Carthage compatibility

    @lfarah made some changes to be carthage compatible. You should reorganize everything to your needs, but keep in mind that the .xcodeproj scheme must be shared so it is compatible :)

    opened by JARMourato 1
  • Swift5

    Swift5

    Updated Sources and successfully compiled with XCode 11 beta 5. If any issues still remain, please don't hesitate to reach out and I will attempt to fix them.

    opened by revzim 0
  • 1Password extension

    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:

    opened by lfarah 0
  • Navigation bar disappears after the login

    Navigation bar disappears after the login

        func loginDidFinish(email: String, password: String, type: LFLoginController.SendType) {
    
            self.navigationController?.setNavigationBarHidden(false, animated: true)
    }
    
    opened by lfarah 0
Owner
Awesome Labs
Awesome Labs
👷‍♀️ login tutorial using Kakao iOS SDK

KakaoLoginTutorial-iOS ??‍♀️ login tutorial using Kakao iOS SDK 목차 디자인 가이드 설정단계 애플리케이션 등록 CocoaPods 통해 모듈 설치 Info.plist 설정 초기화 시작하기 전 카카오톡으로 로그인 기본 웹

Hyungyu Kim 8 Dec 3, 2022
LoginKit is a quick and easy way to add a Login/Signup UX to your iOS app.

LoginKit About LoginKit is a quick and easy way to add Facebook and email Login/Signup UI to your app. If you need to quickly prototype an app, create

Icalia Labs 653 Dec 17, 2022
Convenient & secure logging during development & release in Swift 3, 4 & 5

Colorful, flexible, lightweight logging for Swift 3, Swift 4 & Swift 5. Great for development & release with support for Console, File & cloud platfor

SwiftyBeaver 5.6k Dec 31, 2022
Customizable login screen, written in Swift 🔶

LFLoginController Customizable login screen, written in Swift Creating Login screens is boring and repetitive. What about implementing and customizing

Awesome Labs 152 Oct 30, 2022
Login screen - Sample screen created for job application

LoginDemo Login app screen Evaluation of coding skills for job application We wo

Juan Carlos Pazos 6 Jul 11, 2022
This "Calculator" application is a simple one screen design of calculator screen i have made this single screen design application just to practice AutoLayout concepts.

Calculator Layout This "Calculator" application is a simple one screen design of calculator screen i have made this single screen design application j

Chetan Parate 1 Oct 29, 2021
ViewCodeApp - Login screen layout made with Swift ViewCode

Login Screen Layout an login screen layout made with swift view Concepts used Vi

Jose Leandro B. 1 Mar 28, 2022
Login-screen-using-Swift - Firebase Apple Open Source Development

Firebase Apple Open Source Development This repository contains all Apple platfo

Kushal Shingote 1 Feb 3, 2022
Login screen using Swift language

Login Screens Design iOS login Screens, with SwiftUI Designs inspired by Project

Kushal Shingote 6 May 23, 2022
Simple Login Screen Project using Swift UI.

Simple Login Screen Simple Login Screen Project using Swift UI. Jump to: Prerequisites: Tutorial uploading XCode project on Github Some Xcode Swift UI

Krystal Zhang 0 Oct 2, 2022
Custom MacBook login screen and pam modules using multipeer connectivity and usb hardware checks with iOS app for sign in.

Custom MacBook login screen and pam modules using multipeer connectivity and usb hardware checks with iOS app for sign in.

null 2 Aug 17, 2022
Plug-n-Play login system for iOS written in Swift

Prounounced Cell-Lee Cely’s goal is to add a login system into your app in under 30 seconds! Overview Requirements Usage API Installation License Over

null 164 Nov 15, 2022
Beautiful animated Login Alert View. Written in Objective-C

UIAlertView - Objective-C Animated Login Alert View written in Swift but ported to Objective-C, which can be used as a UIAlertView or UIAlertControlle

Letovsky 2 Dec 22, 2021
FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders.

SWIFT OBJECTIVE-C FSPagerView is an elegant Screen Slide Library implemented primarily with UICollectionView. It is extremely helpful for making Banne

Wenchao Ding 6.7k Jan 2, 2023
Enables you to hide ur UIViews and make them screen/screen shot proof. objective c/c++ only

SecureView Enables you to hide ur UIViews and make them screen/screen shot proof. objective c/c++ only Usage UIWindow* mainWindow; - (void) setup {

Red16 6 Oct 13, 2022
Basic app to show how to login with Facebook, Google, Twitter. Created for learning purpose :) using Xcode 9 and Swift 4.0

Social Logins iOS Basic app to show how to login with Facebook, Google, Twitter. Created for learning purpose :) using Xcode 9 and Swift 4.0 Note: Bef

Jogendra 12 Nov 4, 2022
An poc to make a login using Auth0 in Swift

Swift-Auth0-poc This app is an poc to make a login using Auth0. If you want to try it yourself here is a small tutorial on how to do it. 1. Configure

Sem de Wilde 1 Jan 21, 2022
Swift Starter Kit with Firebase & Facebook Login Onboarding

iOS Swift Starter Kit ?? ?? ?? ?? Boilerplate Onboarding App in Swift with Firebase Integration, Facebook Login and Push Notifications. Save days of a

Instamobile 105 Nov 7, 2022
LoginKit is a quick and easy way to add Facebook and email Login/Signup UI to your app.

LoginKit About LoginKit is a quick and easy way to add Facebook and email Login/Signup UI to your app. If you need to quickly prototype an app, create

Icalia Labs 653 Dec 17, 2022