Arrows

1.0.0

Arrows is an animated custom view to give feedback about your UI sliding panels.
antoniocasero/Arrows

What's New

Initial version

2018-10-15T10:15:57Z

Carthage compatible CocoaPods Platform Language

Twitter

Arrows is an animated custom view, made with Core Graphics, to represent three different states: up/down/middle

Arrowa demo1

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!

More options

    ///  Get the current position, if you want to change
    ///  position use `update` function
    fileprivate(set) var arrowPosition: Position = .middle

    /// Animation duration between arrow states (accesible from IB)
    @IBInspectable open var arrowAnimationDuration: Double = 0.30

    /// Set arrow color (accesible from IB)
    @IBInspectable open var arrowColor: UIColor = .black

Arrowa demo1

Installation

CocoaPods

Add the line pod "Arrows" to your Podfile

Carthage

Add the line github "antoniocasero/Arrows" to your Cartfile

Author

Project created by Antonio Casero (@acaserop on Twitter).

Credits

UI Sketch

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Oct 20 2024 12:22:19 GMT-0900 (Hawaii-Aleutian Daylight Time)