Skip to content

ihammys/OnebyteSwiftNetwork

Repository files navigation

OnebyteSwiftNetworkCycle

[![CI Status](http://img.shields.io/travis/eHumayun Sohail/OnebyteSwiftNetworkCycle.svg?style=flat)](https://travis-ci.org/eHumayun Sohail/OnebyteSwiftNetworkCycle) Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

OnebyteSwiftNetworkCycle is available through CocoaPods. To install it, simply add the following line to your Podfile:

  pod 'OnebyteSwiftNetworkCycle', :git => 'https://github.com/hammy-dev-world/OnebyteSwiftNetwork.git'

##Usage

  1. Import the module in your development hierarchy,
import OnebyteSwiftNetworkCycle
  1. Create a struct for AppNetworkConstants that contains base url, end points, status codes and error codes.

  2. Create a class for AppNetworkManager to handle requests as per requirements.

  3. Create separate operations by subclassing OnebyteNetworkOperationBase in order to initiate requests.

Author

Humayun Sohail (Senior iOS Engineer, Onebyte LLC), humayun@onebyte.biz

License

OnebyteSwiftNetworkCycle is available under the MIT license. See the LICENSE file for more info.

About

This library is based on the concept of plug and play network cycle based on VIPER model in iOS Applications.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages