Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 2.85 KB

README.md

File metadata and controls

87 lines (59 loc) · 2.85 KB

IOS Swift Boiler Plate with Authentication

A boiler plate written in Swift 2.2 with Facebook and Twitter Authentication.

Swift Version License Build Status Coverage Status

Package Manager

The packages are staged as recommended to avoid framework support deprecation.

Frameworks used

Localization

English 🇺🇸 and German 🇩🇪 are supported by the application, in Localizable.strings and in the Storyboard's language files.

CoreData Entities

  • Users
    • name: String
    • platform: String
    • email: String
    • user_id: String
    • img: String
    • oauth_token: String
    • oauth_token_secret: String
    • bg_img: String
    • username: String
    • desc: String

Twitter and Facebook API keys

The Facebook APP_ID can be found in LoginViewController.swift in line 237.

Both Twitter and Facebook employ the Social.framework built into Xcode.

How to use

After launch, the application tries to get the user from the Users entity. If the user exists a View is displayed, and vice-versa.

The currently logged in user is saved as a JSON object as Helpers.currentUser, where Helpers is a singleton.

On successful authentication, the user is redirected to the HomeViewController which now displays the user's profile details, and saves the user in the CoreData Users entity.

Perks

  • 3D Touch for context menu
  • Settings View Controller.

Previews

HomeViewController (not logged in)

Logged out


LoginViewControllers

The background video is located here

Logged out


HomeViewController (logged in)

Logged in


SettingsViewController

Settings


3D Touch

3d Touch context 3d Touch settings


The MIT License (MIT). Please see License File for more information.