Arrows is an animated custom view, made with Core Graphics, to represent three different states: up/down/middle
Usage
Just need to set ArrowView
in the class you want to be painted with the arrow indicator in IB
In your ViewController, you can change the state of the arrow using update
function
class YourViewController: UIViewController {
@IBOutlet weak var arrow: ArrowPanel!
override func viewDidLoad() {
super.viewDidLoad()
// .up, .down, .middle
arrow.update(to: .middle, animated: true)
}
}
The perfect companion for Arrows
is Panels, take a look!
Installation
CocoaPods
Add the line pod "Arrows"
to your Podfile
Carthage
Add the line github "antoniocasero/Arrowa"
to your Cartfile
Author
Project created by Antonio Casero (@acaserop on Twitter).