/Translucid

Lightweight library to set an Image as text background. Written in swift.

Primary LanguageSwiftMIT LicenseMIT

Translucid

Version License Platform ![](https://img.shields.io/badge/Swift 2-compatible-4BC51D.svg?style=flat-square)

Simple and light weight UIView that animate text with an image.

Demo

Translucid

Installation

CocoaPods

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

pod "Translucid", '~> 0.0.1'

Usage

    override func loadView() {
        super.loadView()
        
        let starWars: Translucid = Translucid(frame: self.view.bounds)
        starWars.font = UIFont(name: "Starjedi", size: 20)!
        starWars.text = "Star Wars"
        starWars.backgroundImage = UIImage(named: "stars")
        
        self.view.addSubview(starWars)
        
        starWars.animate()
    }

Author

Lucas Ortis:

License

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