A simple currency converter for iOS
This project is a simple currency converter app for iOS, built by a designer while learning iOS development in Swift. It is available on the App Store for free to download here.
This project is a learning exercise in Swift programming. I seek primarily to get feedback and critique on the code written for this project, but feedback on the overall design and idea is also welcome.
This project is written in Swift 3.
This project uses CocoaPods. Below is the setup to configure Cocoa Pods in your machine.
To install Cocoa Pods, run:
$ sudo gem install cocoapods
To install the required pods for this project, change to the project directory and run:
$ pod install
This project makes use of the Yahoo Query Language (YQL) API to get currency exchange rates. You can test query statements on the YQL Console.
An example YQL statement to fetch the USD to JPY exchange rate looks like:
select * from yahoo.finance.xchange where pair in ("USDJPY")
And the resulting XML REST query looks like:
https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22USDJPY%22)&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
For this project an initial database is created with the currency data from this Google Spreadsheet. Please add a comment if some of the data is incorrect. Exchange rates are updated using the Yahoo API above while the app is being used as rates fluctuate daily.
There are no tests written for this application so far.
I am looking for help translating the application. Please email me if you’re willing to help. Here is the list of current translations:
This is a project by Nuno Coelho Santos. All contributions in the form of pull requests or comments are welcome. If you experience problems with the project, please open an issue and give as much detailed information as you can.
Currency is released under the MIT license. See LICENSE for details.