iOS Login Screen written in Swift 4
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LoginScreen Explictly set target platform in Podfile Jan 6, 2018
.gitignore Removed unused files Jan 17, 2017
LICENSE Create LICENSE Jan 18, 2017 Update README Aug 12, 2018

iOS Login Screen in Swift


This is a simple iOS login screen written in Swift 4. It has support for signing in with Facebook and Twitter, as well as the classic email & password form.

The template uses FacebookLogin and TwitterKit frameworks.

Installation and configuration

First, you need to clone this repository, in order to fetch the code

$ git clone

In order to compile your code, you need to install the dependencies first (in our case, the frameworks from Twitter and Facebook). You can simply do this by running the following command in the root folder of the project (where the Pods file lives):

$ pod install

If you're not familiar with Cocoapods, checkout their website, to see how you can install it.

Once the pods were installed properly, open LoginScreen.xcworkspace with Xcode and run the project.

Everything should be working fine. There's one more thing to do though, since the code is using some default Facebook & Twitter applications. You need to update the code so that it uses your apps.

Open the Info.plist file (as source code) and update the following piece of code with your correct API keys:



The interface of the login screen can be found in Interface/LoginScreen.storyboard. The template uses auto layout contraints, to display the UI elements.

The core class is LoginViewController, which contains all the logic for the three different types of authentication. The code is pretty short and easy to understand.

If you want even more details on the project, please visit iOS App Templates.