Skip to content

comcxx11/SpringText

Repository files navigation

SpringText

Language CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

img

Requirements

  • iOS 9.3

Usage

The usage is very similar to UITextField text properties. SPLabel has two options: Normal, Currency

lblAmount.text(num:192398)

isCurrency, showSymbol are display options

lbl_num1.isCurrency = false
lbl_num1.showSymbol = false
lbl_num1.text(num: 1000000000)

Default currency symbol is dollor sign $

lblAmount.setCurrency(symbol: "")
lblAmount.text(num:192398, showCurrency:true)

Installation

SpringText is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SpringText'

Author

comcxx11, [email protected]

License

SpringText is available under the MIT license. See the LICENSE file for more info.