All Projects → MarioIannotta → Splitviewdraganddrop

MarioIannotta / Splitviewdraganddrop

Licence: mit
Drag and drop between your apps in split view mode on iOS 9

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Splitviewdraganddrop

jyutping
Cantonese Jyutping Keyboard for iOS. 粵語粵拼輸入法鍵盤
Stars: ✭ 23 (-92.7%)
Mutual labels:  ipad
Localradio
📻 LocalRadio is "Radio for Cord-Cutters" – a Software-Defined Radio (SDR) app for your Mac and mobile devices. With an inexpensive RTL-SDR USB device, LocalRadio provides a casual, home-based radio listening experience for your favorite local frequencies - FM broadcasts/free music/news/sports/weather/public safety & aviation scanner/etc.
Stars: ✭ 269 (-14.6%)
Mutual labels:  ipad
Yampa
Functional Reactive Programming domain-specific language embedded in Haskell, for programming efficient hybrid (mixed discrete-time and continuous-time) systems.
Stars: ✭ 294 (-6.67%)
Mutual labels:  ipad
Handygridview
HandyGridView是一个高仿支付宝,网易新闻的高性能的标签可拖动排序的GridView。
Stars: ✭ 255 (-19.05%)
Mutual labels:  drag-and-drop
Cloaker
Simple, drag-and-drop, password-based file encryption
Stars: ✭ 267 (-15.24%)
Mutual labels:  drag-and-drop
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (-10.79%)
Mutual labels:  ipad
splitImage
把图片分割成n*m份,支持拖拽、input上传
Stars: ✭ 22 (-93.02%)
Mutual labels:  drag-and-drop
Angular Editor Fabric Js
Drag-and-drop editor based on Fabricjs for Angular.io
Stars: ✭ 295 (-6.35%)
Mutual labels:  drag-and-drop
Readinglist
📚 📱 Reading List - an iOS app to track personal reading lists
Stars: ✭ 266 (-15.56%)
Mutual labels:  ipad
Dropzone
Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.
Stars: ✭ 16,097 (+5010.16%)
Mutual labels:  drag-and-drop
Vue Draggable
Vue Drag and Drop library without any dependency 👌
Stars: ✭ 258 (-18.1%)
Mutual labels:  drag-and-drop
Pushok
PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
Stars: ✭ 260 (-17.46%)
Mutual labels:  ipad
Draggable Vue Directive
Vue2 directive that handles drag & drop
Stars: ✭ 286 (-9.21%)
Mutual labels:  drag-and-drop
DraggableTreeView
TreeView with drag and drop (n-th level)
Stars: ✭ 95 (-69.84%)
Mutual labels:  drag-and-drop
Knphotobrowser
📷 图片 || 视频 浏览器(本地和网络) , UIViewController + CollectionView , 完美适配 iPhone 以及 iPad ,屏幕旋转功能 , 适配SDWebImage 5.0
Stars: ✭ 296 (-6.03%)
Mutual labels:  ipad
image-uploader
Simple Drag & Drop image uploader plugin to static forms, without using AJAX
Stars: ✭ 70 (-77.78%)
Mutual labels:  drag-and-drop
Instagram stories
Inspired by Instagram Stories functionality. This source is similar to Instagram Stories, which is having both image and video support.
Stars: ✭ 275 (-12.7%)
Mutual labels:  ipad
Blear
iOS app that transforms your photos into stunning blurry wallpapers for your device
Stars: ✭ 311 (-1.27%)
Mutual labels:  ipad
Vue Form Builder
Super Form Builder built on top of Vue with Drag & Drop functionality, savable-form-schema and easy to maintain/upgrade your form.
Stars: ✭ 292 (-7.3%)
Mutual labels:  drag-and-drop
Chatsecure Ios
ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.
Stars: ✭ 3,044 (+866.35%)
Mutual labels:  ipad

SplitViewDragAndDrop

Easily add drag and drop to pass data between your apps

Platform Swift 3 Cocoapods Compatible

Setup

  • Add pod 'SplitViewDragAndDrop' to your Podfile or copy the "SplitViewDragAndDrop" folder into your project
  • Make sure to call SplitViewDragAndDrop.configure(groupIdentifier: <YOUR-APP-GROUP-ID>) in application:didFinishLaunchingWithOptions:. Your apps must share that app group in order to communicate.
  • Configure the view you want to drag with SplitViewDragAndDrop.handleDrag(viewToDrag: <THE-DRAGGABLE-VIEW>, identifier: <AN-IDENTIFIER>, dataToTransfer: <SOME-DATA-TO-TRANSFER>) where
    • viewToDrag is a UIView and it will be snapshotted and dragged around
    • identifier is a string rappresenting an unique identifier.
    • dataToTransfer is a Data, it could be an image, a pdf ecc..
  • Configure the drop observer with
    SplitViewDragAndDrop.addDropObserver(
     targetView: <A-TARGET-VIEW>,
     identifier: <AN-IDENTIFIER>,
     draggingBegan: { frame, draggedViewSnapshotImage, dataTransfered in
       // the drag is began, here you can perform some ui changes in order to tell the user where to drag the item
     },
     draggingValidation: { frame, draggedViewSnapshotImage, dataTransfered in            
       return <A-BOOL>
     },
     completion: { frame, draggedViewSnapshotImage, dataTransfered, isValid in
       // the drag is complete and you can use dataTrasfered if you want
     }
    )
    
    where
    • targetView is a UIView and it will be the center of the dragged item when the user end the dragging and the validation succedded
    • identifier is a string rappresenting an unique identifier
    • draggingBegan is a closure that will be called when the drag is began
    • draggingValidation is a closure that will be called when the drag is ended. You have to return a value that indicate if the drag is valid or not. If that value is true, the dragged view will be moved to the center of the targetView, otherwise it will be moved back to it's original position.
    • completion is a closure that will be called after the validation.

Demo

In this repository you can also find a demo.

Info

If you like this git you can follow me here or on twitter :) @MarioIannotta

Cheers from Italy!

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].