TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Maintained by Sergey Demchenko.
Long tap button with animated progress bar.
@IBAction func onPayNowButtonTapped(longTapButton: ANLongTapButton)
{
longTapButton.didTimePeriodElapseBlock = { () -> Void in
let alert = UIAlertController(title: "Payment", message: "Payment has been made.", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
}
}
See example project for more details.
Sergey Demchenko, [email protected]
ANLongTapButton is available under the MIT license. See the LICENSE file for more info.