Latest 0.1.8
Homepage https://github.com/gemgemo/Gemo
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform
Swift version

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.

Latest podspec

{
    "name": "Gemo",
    "version": "0.1.8",
    "summary": "To make my work more easy",
    "description": "my first library, use to make my work easy",
    "homepage": "https://github.com/gemgemo/Gemo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gamal": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gemgemo/Gemo.git",
        "tag": "0.1.8"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Gemo/Classes/**/*",
    "pushed_with_swift_version": "echo u201c4.0u201d >> .swift-version"
}

Pin It on Pinterest

Share This