Currency SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Class

An object that display any tabular data. It can be used for currency attachment.


Declaration

public struct CurrencyView: View

Overview

The component is mainly used to display exchange rates, but it can also be used to display any tabular data.

Live example

Configure a Currency View

CurrencyView(currencyText: "USD", buyText: "8,65", sellText: "8,88")

You can also configure a Currency View with image and static icons of two types - up and down

CurrencyView(
   currencyText: "USD",
   buyText: "68,65",
   sellText: "67,88",
   image: Image(uiImage: Asset.Currency.usa.image),
   firstCellType: .arrowUp,
   secondCellType: .arrowUp
)

Configure a CurrencyView with custom image

CurrencyView(currencyText: "CNY", buyText: "68,65", sellText: "67,88", image: Image(uiImage: Asset.Currency.china.image))

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.