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)
You use it like any other UIView.
Just to make sure you specify the view's subclass:
To run the example project, clone the repo, and run pod install
from the Example directory first.
AHFloatingTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AHFloatingTextView"
Andy Tong, ivsall2012@gmail.com
AHFloatingTextView is available under the MIT license. See the LICENSE file for more info.