TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | echo “4.0” >> .swift-version |
SPMSupports SPM | ✗ |
Maintained by gamal al3yak.
To run the example project, clone the repo, and run pod install
from the Example directory first.
swift 4
xcode 9
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"
}
}
Gemo is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'Gemo'
Gamal, [email protected]
Gemo is available under the MIT license. See the LICENSE file for more info.