Currencies is an iOS mobile app developed with Swift and SwiftUI in Xcode. Simply enter an amount, choose your currencies and get real-time conversion rates at your fingertips. Ideal for travelers and finance enthusiasts alike, this app ensures you have the latest currency information quickly and easily.
run.mp4
For persistent data like display and currency code the @AppStorage property wrapper was used.
@AppStorage("selectedCurrencyBase") var selectedCurrencyCode: String = "EUR"
@AppStorage("isDarkModeEnabled") var isDarkModeEnabled = false
For the implementation of the Currencies application, I utilized the ExchangeRate-API, which allows you to retrieve current currency exchange rates, perform currency conversions and fetch historical exchange rate data.
Parameter | Type | Value | Description |
---|---|---|---|
api_key |
string |
b1b71f168dab8cfbff14f4d3 | Required |
currency_base |
string |
EUR | Required |
GET https://v6.exchangerate-api.com/v6/b1b71f168dab8cfbff14f4d3/latest/EUR
This will return (with JSON format) the exchange rates from your base code to all the other currencies which supported:
{
"result":"success",
"documentation":"https://www.exchangerate-api.com/docs",
"terms_of_use":"https://www.exchangerate-api.com/terms",
"time_last_update_unix":1715558401,
"time_last_update_utc":"Mon, 13 May 2024 00:00:01 +0000",
"time_next_update_unix":1715644801,
"time_next_update_utc":"Tue, 14 May 2024 00:00:01 +0000",
"base_code":"EUR",
"conversion_rates":{
"EUR":1,
"AED":3.9561,
"AFN":77.7023,
"ALL":100.5079,
"AMD":418.0317,
"ANG":1.9283,
"AOA":907.8752,
"ARS":931.5387,
"AUD":1.6318,
"...":1.9283,
"...":1.8379,
"...":28.8929,
"ZWL":14.5678
}
}
Xcode | GitHub | Figma | Postman |
---|---|---|---|
Swift | SwiftUI |
---|---|
I'm always open to questions, suggestions and comments. If you have any questions or need assistance, feel free to contact me at nicktheodoridiscontact@gmail.com or through my GitHub account.
Follow me on social media for the latest news and updates:
- Twitter: nickiOSDev
- Instagram: nickmadethisone
- LinkedIn: Nikolaos Theodoridis
This project is distributed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
This means you can use, modify and share this work under the following conditions:
- You must attribute the original creator (attribution).
- You may not use this work for commercial purposes (non-commercial use).