Latest 2.0
Homepage https://github.com/kanecheshire/PreviewableActivityViewController
License MIT
Platforms ios 9.0
Authors

[![CI Status](http://img.shields.io/travis/Kane Cheshire/PreviewableActivityViewController.svg?style=flat)](https://travis-ci.org/Kane Cheshire/PreviewableActivityViewController)
Version
License
Platform

Example Image

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

PreviewableActivityViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'PreviewableActivityViewController'

Author

Kane Cheshire,

License

PreviewableActivityViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PreviewableActivityViewController",
    "version": "2.0",
    "summary": "A `UIActivityViewController` that provides the ability to show a preview of the image being shared.",
    "description": "A `UIActivityViewController` that provides the ability to show a preview of the image being shared. There are some configurations but by default you only need to instantiate it the same way as a regular `UIActivityViewController` so there's no extra code to write.",
    "homepage": "https://github.com/kanecheshire/PreviewableActivityViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kane Cheshire": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kanecheshire/PreviewableActivityViewController.git",
        "tag": "2.0"
    },
    "social_media_url": "https://twitter.com/kanecheshire",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "PreviewableActivityViewController/Classes/**/*"
}

Pin It on Pinterest

Share This