PreviewableActivityViewController
A `UIActivityViewController` that provides the ability to show a preview of the image being shared.
Install / Use
/learn @KaneCheshire/PreviewableActivityViewControllerREADME
PreviewableActivityViewController
[](https://travis-ci.org/Kane Cheshire/PreviewableActivityViewController)

Usage
Default usage is no different from the regular UIActivityViewController . The controller will automatically try to populate the preview image view from the images you provide at initialisation time:
let controller = PreviewableActivityViewController(activityItems: [#imageLiteral(resourceName: "example")])
present(controller, animated: true)
You can optionally customise things like the aspect ratio of the preview image (defaults to 2:1). If you change this aspect ratio, be mindful of running out of space on smaller screens, AirDrop takes up a lot of space.
Requirements
Installation
Swift Package Manager
PreviewableActivityViewController supports SPM, simply add HapticGenerator as a package dependency in Xcode 11 or newer.
Cocoapods
Add the following line to your Podfile:
pod 'PreviewableActivityViewController'
Author
License
PreviewableActivityViewController is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate 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
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
