A boiler plate written in Swift 2.2 with Facebook and Twitter Authentication.
The packages are staged as recommended to avoid framework support deprecation.
- CocoaPods
- Facebook SDK (Core and Login)
English 🇺🇸 and German 🇩🇪 are supported by the application, in Localizable.strings and in the Storyboard's language files.
- 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
- name:
The Facebook APP_ID can be found in LoginViewController.swift in line 237.
Both Twitter and Facebook employ the Social.framework built into Xcode.
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.
- 3D Touch for context menu
- Settings View Controller.
The background video is located here
The MIT License (MIT). Please see License File for more information.