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/LongPressRecordButtonREADME
LongPressRecordButton
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
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
