Latest 1.0.0
Homepage https://github.com/antoniocasero/Arrows
License MIT
Platforms ios 11.0, tvos 11.0
Frameworks UIKit
Authors

Arrows

Carthage compatible
CocoaPods
Platform
Language

Twitter

Arrows is an animated custom view to represent three different arrow 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.
Or directly instantiate the class ArrowView in code. It is based on UIBezierPath, so the dimensions are defined by the view frame, don’t worry about the resolution it will look perfect.

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)
    }
}

You can find more options in ArrowView

    ///  Get the current position
    fileprivate(set) var arrowPosition: Position = .middle

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

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

The perfect companion for Arrows is Panels, check it out! ✨

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

Latest podspec

{
    "name": "Arrows",
    "version": "1.0.0",
    "summary": "Arrow indicator view for sliding panels",
    "description": "Arrows is an animated custom view, made with Core Graphics, to represent three different states: `up/down/middle`",
    "homepage": "https://github.com/antoniocasero/Arrows",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Antonio Casero Palmero": "[email protected]"
    },
    "social_media_url": "@acaserop",
    "swift_version": "4.2",
    "platforms": {
        "ios": "11.0",
        "tvos": "11.0"
    },
    "source": {
        "git": "https://github.com/antoniocasero/Arrows.git",
        "tag": "1.0.0"
    },
    "source_files": "Sources/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This