Code Monkey home page Code Monkey logo

lnpreviewtocontextmenu's Introduction

LNPreviewToContextMenu

LNPreviewToContextMenu is a framework for automatically transforming your existing 3D Touch Peek&Pop preview controllers and actions into the new UIContextMenu system in iOS 13.

GitHub release GitHub stars GitHub license PayPal Donation Button

GitHub issues GitHub contributors Carthage compatible

With this framework, your existing 3D Touch Peek&Pop previewing code will automagically display in the new UIContextMenu system under iOS 13 and above.

Features

  • Supports storyboard and code-based previewing
  • Optionally, supports adding images to your existing preview action items to display as menu item images
  • Adds support for devices without 3D Touch (including iPhone 11 and iPads)
  • macOS Catalyst support (your preview actions are displayed as a context menus)

Adding to Your Project

Carthage

Add the following to your Cartfile:

github "LeoNatan/LNPreviewToContextMenu"

Make sure you follow the Carthage integration instructions here.

Manual

Drag the LNPreviewToContextMenu.xcodeproj project to your project, and add LNPreviewToContextMenu.framework to Frameworks, Libraries, and Embedded Content in your project target's General tab. Xcode should sort everything else on its own.

Check out the included example project to see how it is integrated with the framework.

CocoaPods

CocoaPods is not supported. There are many reasons for this. Instead of CocoaPods, use Carthage. You can continue using CocoaPods for for your other dependencies and Carthage for LNPreviewToContextMenu.

Using the Framework

Just link your project with the framework, and the magic will happen automatically.

Optionally, import <LNPreviewToContextMenu/UIPreviewAction+Images.h> to add support for images to your preview action items.

lnpreviewtocontextmenu's People

Contributors

leonatan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.