amadeus4dev-examples / amadeus-ios

Swift library for the Amadeus Self-Service travel APIs
https://developers.amadeus.com
MIT License
12 stars 10 forks source link

Implement usage of Swift 5.0's Result type #19

Closed JamesDale closed 4 years ago

JamesDale commented 4 years ago

Proposal: The completion handlers currently being used should be changed to the Swift 5 type, Result.

This is more swifty and generally the more community-accepted way to provide values from asynchronous functions.

https://developer.apple.com/documentation/swift/result

JamesDale commented 4 years ago

Also includes some indentation fixes using Xcode's recommended formatting.

alnacle commented 4 years ago

Looks good! Thanks for your contribution!