SkillAgentSearch skills...

ADArrowButton

Flat arrow button.

Install / Use

/learn @Antondomashnev/ADArrowButton
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ADArrowButton

ADArrowButton is a Swift UIControl component like an "arrow flat style" UIButton. It could be enabled or disabled with nice spring animation.

Animation

Requirements

Adding ADArrowButton to your project

  1. Add the ADArrowButton.swift file to your project.
  2. Install Facebook POP

Usage

ADArrowButton is @IBDesignable and has @IBInspectable properties listed below:

  • arrowDirection - it could be Left, Right, Top, Bottom arrow
  • lineColor
  • highlightedBackgroundColor
  • normalBackgroundColor
  • highlightedLineColor
  • lineWidth
  • insetTop
  • insetLeft
  • insetRight
  • insetBottom
  • enabled

To animatedly enable or disable it just calls this method

@IBOutlet var arrowButton: ADArrowButton!
...
self.arrowButton.setEnabled(!self.arrowButton.enabled, animated: true)

License

This code is distributed under the terms and conditions of the MIT license.

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated5y ago
Forks2

Languages

Swift

Security Score

70/100

Audited on Jun 19, 2020

No findings