Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Ekhoo/Translucid

Lightweight library to set an Image as text background. Written in swift.
https://github.com/Ekhoo/Translucid

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

![Translucid](https://github.com/Ekhoo/Translucid/blob/master/Source/Asset/translucid.png)

[![Version](https://img.shields.io/cocoapods/v/Translucid.svg?style=flat)](http://cocoapods.org/pods/Translucid)
[![License](https://img.shields.io/cocoapods/l/Translucid.svg?style=flat)](http://cocoapods.org/pods/Translucid)
[![Platform](https://img.shields.io/cocoapods/p/Translucid.svg?style=flat)](http://cocoapods.org/pods/Translucid)
![](https://img.shields.io/badge/Supported-iOS8-4BC51D.svg?style=flat-square)
![](https://img.shields.io/badge/Swift 2-compatible-4BC51D.svg?style=flat-square)
[![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)

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

# Demo
![Translucid](https://github.com/Ekhoo/Translucid/blob/master/Example/Resources/demo.gif)

# Installation
## CocoaPods
Translucid is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod "Translucid", '~> 0.0.2'
```

## Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with [Homebrew](http://brew.sh/) using the following command:

```bash
$ brew update
$ brew install carthage
```

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

```ogdl
github "Ekhoo/Translucid" ~> 0.0.2
```

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

# Usage
```swift
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:
- [email protected]
- [@LucasEkhoo](https://twitter.com/LucasEkhoo)
- [Linkedin](https://fr.linkedin.com/in/lucasortis)

# License

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