If you like FTGradientLabel and use it, could you please:
- star this repo
- send me some feedback. Thanks!
add "FTGradientLabel.swift" to your proj
- (void)viewDidLoad()
{
... ...
var testlabel = FTGradientLabel(frame: CGRectMake(0, 0, 200, 50))
testlabel.text = "Helloworld"
testlabel.font = UIFont(name: "Helvetica", size: 41)
testlabel.gradientStartPoint = CGPointMake(0, 0)
testlabel.gradientEndPoint = CGPointMake(1, 1)
testlabel.center = view.center
testlabel.gradientColors = [UIColor.redColor(),UIColor.yellowColor()]
self.view.addSubview(testlabel)
}
Author: BillXie
This code is distributed under the terms and conditions of the MIT license.
If you are fixing a bug you discovered, please add also a unit test so I know how exactly to reproduce the bug before merging.