AdmiralSwiftUI Currency - admiral-team/admiralui-ios GitHub Wiki
CurrencyView
- The view for display currency.
CurrencyCellType
- The style of currency cell. Can be: arrowUp (cell with ArrowDown Image), arrowDown (cell without image. There is an indent from the right edge), empty (cell without image. The position of the cell is at the right edge), none
CurrencyView(
currencyText: "USD",
buyText: "68,85",
sellText: "69,45",
image: nil,
firstCellType: .arrowUp,
secondCellType: .arrowDown
)
You can create a CurrencyCellType
by specifying the following parameters in the initializer
- currencyText: String - The text that the currency label displays.
- buyText: String - The text that the buy label displays.
- sellText: String - The text that the sell label displays.
- image: Image? - The image that the image view displays.
- firstCellType: CurrencyCellType - A value that configures style of buy price.
- secondCellType: CurrencyCellType - A value that configures style of sell price.
To run live demo with CurrencyCellType
open Xcode and run project with Example target. Then in the Main Page -> Currency
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 apull request
in our project. You can read more about this in the Github documentation.