Skip to content
IBDesignable label with customizable gradient attributes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Version License Platform

What does GradientBorderedLabelView do?

  • You can add it from code or from storyboard
  • You can see changes on the fly from storyboard because it's IBDesignable
  • What If you are using autolayout or dynamic size? GradientBorderedLabelView will arrange font size according to label's size. No need to worry.


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


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

pod 'GradientBorderedLabelView'

Or you can download the sample project, just drag and drop the GradientBorderedLabelView.swift file to your project.


  • You can add it from storyboard, change custom attributes on storyboard and see changes on the fly.

Or you can add it via code as below:

    let gradientLabel = GradientBorderedLabelView(frame: CGRect(x: 20, y: 70, width: 160, height: 100))
    gradientLabel.textOfLabel = "Some gradient text from code with custom font"
    gradientLabel.fontSizeOfLabel = 22
    gradientLabel.customFontName = "Arial-ItalicMT"
    gradientLabel.labelBackgroundColor =


Detailed explanation

You can find detailed explanation about what is the aim behind this library and how does its inner components work on my medium post.

Author / (@mkeremkeskin on Twitter).


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

You can’t perform that action at this time.