Skip to content

Simple and easy-to-use record button for iOS, that enforces a long press, similar to Instagram — written in Swift

License

Notifications You must be signed in to change notification settings

mkoehnke/LongPressRecordButton

Repository files navigation

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.

About

Simple and easy-to-use record button for iOS, that enforces a long press, similar to Instagram — written in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published