Simple and easy-to-use record button for iOS, that enforces a long press (and shows a tooltip when short-pressed) similar to the Instagram app. Take a look at the sample project for further information.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate the LongPressRecordButton into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'LongPressRecordButton'
Then, run the following command:
$ pod install
Copy the LongPressRecordButton.swift file to your Swift project, add it to a target and you're good to go.
The easiest way to get started is to add the LongPressRecordButton as a custom view in your Storyboard. The appearance can be easily customized using the Attributes Inspector in the Xcode Utilities area.
Mathias Köhnke @mkoehnke
LongPressRecordButton is available under the MIT license. See the LICENSE file for more info.
The release notes can be found here.