Currency - admiral-team/admiralui-ios GitHub Wiki
Class
The view for display currency
Declaration
public final class CurrencyView: UIView, AnyAppThemable
Overview
The component is mainly used to display exchange rates, but it can also be used to display any tabular data. It is possible to change the number of lines in layers. You can also select any display of rows with icons through the right panel.
Live example
Configure a default CurrencyView
let currency = CurrencyView()
currency.buyText = "100,88"
currency.currencyText = "USD"
currency.sellText = "94.65"
Configure CurrencyView with icons and flags
let currency = CurrencyView()
currency.image = Asset.Currency.usa.image
currency.buyText = "100,88"
currency.currencyText = "USD"
currency.sellText = "94.65"
currency.currencyText = .arrowUp
currency.currencyText = .arrowDown
Configure CurrencyView with icons
let currency = CurrencyView()
currency.buyText = "28,88"
currency.currencyText = "100$"
currency.sellText = "18.65"
row.buyCellType = .arrowUp
row.sellCellType = .arrowUp
Configure CurrencyView with flags
let currency = CurrencyView()
currency.image = Asset.Currency.china.image
currency.buyText = "19,88"
currency.currencyText = "CNY"
currency.sellText = "9.65"
Contribution
You can help us to find bugs or ask us to add features.
- To start
issueplease use ready-made templates. - To make changes to the repository, you need to create a
forkof the project, make changes to the code and create apull requestin our project. You can read more about this in the Github documentation.