Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1.46 KB

README.md

File metadata and controls

24 lines (22 loc) · 1.46 KB

SwiftBoilerPlate

The SwiftApp project is a easy to build on boilerplate in Swift4.x

Modules of SwiftApp Boilerplate

  1. AppDelegate
  2. The AppDelegate is customised to configure the app NavigationBar. An optional inactivity timeout mechanism is implemented which can be easily added to the project. The InactivityTimer class is a UIApplication subclass which manages the inactivity timeout employing the listeners in AppDelegate. Add the main.swift into the project target and comment the @UIApplicationMain in AppDelegate file to bring the InactivityTimer class into action.


  3. NetworkManager
  4. The Network module manages the web services of the application. The NetwortConstants struct holds the webservice urls. The AuthHandler class handles the authorization token expiry with a retry mechanism implemented employing the retrier provided by Alamofire. The Network manager class initiates the web services through the AuthHandler. Webservices with session token are to be directed through AuthHandler and those without shall fire the method fireWebService;


More frameworks

  • Interactive notifications here
  • Slidermenu for Swift projects here