AdmiralUIKit Views Currency - admiral-team/admiralui-ios GitHub Wiki
Overview
CurrencyView
- The view for display currency.
Code
let currency = CurrencyView()
currency.image = Asset.System.Outline.arrowDownOutline.image
currency.sellCellType = .arrowUp
currency.sellText = "Продать"
currency.buyText = "Покупка"
currency.buyCellType = .arrowUp
currency.currencyText = "Валюта"
You can create a CurrencyView with the zero frame rectangle by specifying the following parameters in init:
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: UIImage? - The image that the image view displays.
buyCellType: CurrencyCellType - A value that configures style of buy price.
sellCellType: CurrencyCellType - A value that configures style of sell price.
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
Live Example
To run live demo with Currency
open Xcode and run project with Example target. Then in the main page open Currency/CurrencyView:
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 apull request
in our project. You can read more about this in the Github documentation.