OpenBank is a SwiftUI-based iOS application that uses the Česká spořitelna Transparent Accounts API to fetch and display information about transparent bank accounts.
- Fetch and display a list of transparent accounts.
- View details for a specific account.
Due to the sandbox API limitations, all account details and transactions return identical data regardless of the accountNumber. To handle this:
- Most account information (e.g., name, IBAN, balance) is directly sourced from
AccountListViewModel, which contains preloaded data. - The
descriptionis fetched separately usingTransactionViewModelto demonstrate how detailed information could be loaded in a real-world scenario.
This design highlights the flexibility of the architecture and ensures the app remains functional despite API limitations.
The application is best experienced on an iPad in landscape mode. The larger screen size and horizontal layout provide optimal usability and readability.
-
Clone the repository:
git clone https://github.com/your-username/OpenBank.git
-
Add your Environment.swift file with the following content:
struct Environment { static let baseURL = "https://api.csas.cz/webapi/api/v3/transparentAccounts" static let apiKey = "your_api_key" }
The NetworkManager implementation is inspired by Gökhan Varış's article on Medium.