Skip to content

marketplacer/price-view-ios

Repository files navigation

iOS control for showing price.

This control shows two prices next to each other: regular price and price before discount. The latter price is crossed out.

Price control for iOS

Usage

let priceView = TegPriceView()
priceView.showPrice('$199')
priceView.showPrice('$199', '$299') # second price is the price before discount

# Customize fonts (optional)
priceView.priceFont = UIFont.boldSystemFontOfSize(15)
priceView.priceBeforeDiscountFont = UIFont.systemFontOfSize(15)

# Customize colors (optional)
priceView.priceColor = UIColor.blackColor()
priceView.priceBeforeDiscountColor = TegColors.grayColor()

priceView.marginBetweenPrices = 5 # optional

One can also use TegPriceView with the storyboard.

Home

https://github.com/marketplacer/price-view-ios

About

iOS control to show price and price before discount

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages