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

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

Demo

Installation

CocoaPods

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

pod "Translucid", '~> 0.0.2'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Device into your Xcode project using Carthage, specify it in your Cartfile:

github "Ekhoo/Translucid" ~> 0.0.2

Run carthage update to build the framework and drag the built TranslucidFramework.framework into your Xcode project.

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.

GitHub

https://github.com/Ekhoo/Translucid