Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.96 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.96 KB

LongPressRecordButton

Twitter: @mkoehnke Version License Platform

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.

Installation

CocoaPods

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

Manually

Copy the LongPressRecordButton.swift file to your Swift project, add it to a target and you're good to go.

Usage

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.

Author

Mathias Köhnke @mkoehnke

License

LongPressRecordButton is available under the MIT license. See the LICENSE file for more info.

Recent Changes

The release notes can be found here.