SkillAgentSearch skills...

LongPressRecordButton

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

Install / Use

/learn @mkoehnke/LongPressRecordButton
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

<img src="https://github.com/mkoehnke/LongPressRecordButton/blob/master/Resources/LongPressRecordButton.gif">

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.

Related Skills

View on GitHub
GitHub Stars24
CategoryDevelopment
Updated1y ago
Forks4

Languages

Swift

Security Score

75/100

Audited on May 9, 2024

No findings