Skip to content
Proyek

Tentang

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

Desain dan media

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Translucid

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

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.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.

Jelajahi proyek terkait

Memuat…