ivsall2012 / AHFloatingTextView

A floating text view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AHFloatingTextView

the Example Project in this repository

Real world example(it's from AHFMBottomPlayer)

Real world example(it's from AHFMAudioPlayerVC)

Usage

programatically

let floatingView = AHFloatingTextView()
floatingView.frame = CGRect(x: 50, y: 20.0, width: 300, height: 50)
floatingView.text = "There's place in your heart and I know it is love!"
floatingView.backgroundColor = UIColor.black
floatingView.color = UIColor.white
floatingView.pausingInterval = 1.0
self.view.addSubview(floatingView)

Using Storyboard or a xib

You use it like any other UIView. Just to make sure you specify the view's subclass:

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "AHFloatingTextView"

Author

Andy Tong, ivsall2012@gmail.com

License

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

About

A floating text view

License:MIT License


Languages

Language:Shell 60.2%Language:Swift 29.1%Language:Ruby 5.9%Language:Objective-C 4.8%