Gemo 0.1.8

Gemo 0.1.8

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version echo “4.0” >> .swift-version
SPMSupports SPM

Maintained by gamal al3yak.



Gemo 0.1.8

  • By
  • Gamal





Example

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

Requirements

swift 4
xcode 9

Usage

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        Gemo.request(link: "https://quarkbackend.com/getfile/gemgemo/mony", method: .get)
            .response(Money.self) { (result) in
                switch (result) {
                    case .failure(let error):
                        print(error)

                    case .jsonString(let jsonString):
                        print(jsonString)

                    case .success(let object):
                        print("object:", object)
                }
            }

    }
}



struct Money: Codable {

    let isMyMoney: Bool

    private enum CodingKeys: String, CodingKey {
        case isMyMoney = "taked"
    }

}

Installation

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

pod 'Gemo'

Author

Gamal, [email protected]

License

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