Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/Ekhoo/Translucid
- Owner: Ekhoo
- License: mit
- Created: 2015-12-18T06:20:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T06:37:20.000Z (about 7 years ago)
- Last Synced: 2024-11-04T05:17:54.631Z (about 1 month ago)
- Language: Swift
- Homepage:
- Size: 8.43 MB
- Stars: 551
- Watchers: 13
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cocoa - Translucid
- awesome-swift - Translucid - Lightweight library to set an Image as text background. (Libs / UI)
- awesome-ios-star - Translucid - Lightweight library to set an Image as text background. (Text / Other Testing)
- awesome-ios - Translucid - Lightweight library to set an Image as text background. (Text / Other Testing)
- awesome-swift - Translucid - Lightweight library to set an Image as text background. Written in swift. ` 📝 5 years ago` (UI [🔝](#readme))
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.