naturaln0va / Visualactivityviewcontroller
Licence: mit
A way to represent what you’re sharing.
Stars: ✭ 756
Projects that are alternatives of or similar to Visualactivityviewcontroller
Findme
An ARKit App that can help your friends to find you
Stars: ✭ 483 (-36.11%)
Mutual labels: sharing
Secureuxtheme
🎨 A secure boot compatible in-memory UxTheme patcher
Stars: ✭ 586 (-22.49%)
Mutual labels: customization
Emacs Elisp Programming
Tutorial about programming Elisp and Emacs text editor customization.
Stars: ✭ 548 (-27.51%)
Mutual labels: customization
Shox
🍫 A customisable, universally compatible terminal status bar
Stars: ✭ 637 (-15.74%)
Mutual labels: customization
Switchthemeinjector
Create custom themes for the nintendo switch !
Stars: ✭ 436 (-42.33%)
Mutual labels: customization
Livedown
Live Markdown previews for your favorite editor.
Stars: ✭ 740 (-2.12%)
Mutual labels: preview
Traces.vim
Range, pattern and substitute preview for Vim
Stars: ✭ 568 (-24.87%)
Mutual labels: preview
Angular Socialshare
Angular social share module, share urls and content on social networks such as facebook, google+, twitter, pinterest and more ... - http://720kb.github.io/angular-socialshare
Stars: ✭ 508 (-32.8%)
Mutual labels: sharing
Vim Markdown Preview
A light Vim plugin for previewing markdown files in a browser - without leaving Vim.
Stars: ✭ 530 (-29.89%)
Mutual labels: preview
Vue Preview
A Vue Integrated PhotoSwipe Image Preview Plugin
Stars: ✭ 639 (-15.48%)
Mutual labels: preview
Sparkleshare
Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
Stars: ✭ 4,661 (+516.53%)
Mutual labels: sharing
Carbon
🖤 Create and share beautiful images of your source code
Stars: ✭ 29,304 (+3776.19%)
Mutual labels: sharing
Sdk
Make any URL embeddable. Turn any URL into a beautiful link preview.
Stars: ✭ 446 (-41.01%)
Mutual labels: preview
Spicetify Cli
Commandline tool to customize Spotify client. Supports Windows, MacOS and Linux.
Stars: ✭ 9,316 (+1132.28%)
Mutual labels: customization
Socialify
💞 Socialify your project. 🌐 Share with the world!
Stars: ✭ 750 (-0.79%)
Mutual labels: sharing
I3 Gnome
Use i3wm/i3-gaps with GNOME Session infrastructure.
Stars: ✭ 677 (-10.45%)
Mutual labels: customization
About
This project provides a preview of items being shared via UIActivityViewController
. Example:
// standard activity view controller
let vc = UIActivityViewController(activityItems: [shareText])
// custom activity view controller with a preview
let vc = VisualActivityViewController(text: shareText)
Features
- Text, Image, and URL previewing
- Swipe gesture to dismiss the share sheet
- Easy customization (match your app’s style)
Requirements
- iOS 9.0+
- Xcode 9.0+
Installation
To install, simply add the VisualActivityViewController.swift
file to your project.
Advanced Usage
There are quite a few different options to customize the appearance of the preview. Check out the example project to see how some of these options work.
/// The duration for the preview fading in
var fadeInDuration: TimeInterval = 0.3
/// The duration for the preview fading out
var fadeOutDuration: TimeInterval = 0.3
/// The corner radius of the preview
var previewCornerRadius: CGFloat = 12
/// The corner radius of the preview image
var previewImageCornerRadius: CGFloat = 3
/// The side length of the preview image
var previewImageSideLength: CGFloat = 80
/// The padding around the preview
var previewPadding: CGFloat = 12
/// The number of lines to preview
var previewNumberOfLines: Int = 5
/// The preview color for URL activity items
var previewLinkColor: UIColor = UIColor(red: 0, green: 0.47, blue: 1, alpha: 1)
/// The font for the preview label
var previewFont: UIFont = UIFont.systemFont(ofSize: 18)
/// The margin from the top of the viewController's window
var previewTopMargin: CGFloat = 8
/// The margin from the top of the viewController's view
var previewBottomMargin: CGFloat = 8
License
This project is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].