Skip to content

ivsall2012/AHFloatingTextView

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published