{"id":49897,"date":"2017-07-14T12:01:12","date_gmt":"2017-07-14T06:31:12","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=49897"},"modified":"2017-07-14T15:14:08","modified_gmt":"2017-07-14T09:44:08","slug":"basic-implementaion-of-drag-drop-feature-with-uicollectionview","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/","title":{"rendered":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView"},"content":{"rendered":"<p>In WWDC 2017 Apple has introduced Drag &amp; Drop Interaction API with iOS 11. This API will help to implement Drag &amp; Drop feature within the same application or between different <a title=\"iOS App Development\" href=\"https:\/\/2thenew.today\/mobile-ios-application-development-services\">iOS applications<\/a>. But for now, this API is enabled only in iPad.<\/p>\n<p>Now we will learn how to implement Drag &amp; Drop feature in UICollectionView. This feature is divided into 2 parts:<\/p>\n<ol>\n<li>Drag<\/li>\n<li>Drop<\/li>\n<\/ol>\n<p>We can implement any of the following features according to the requirement of the application:<\/p>\n<ol>\n<li>Only Drag<\/li>\n<li>Only Drop<\/li>\n<li>Both Drag &amp; Drop<\/li>\n<\/ol>\n<p><strong>Drag Feature in UICollectionView<\/strong><\/p>\n<p>To implement Drag in UICollectionView Apple has introduced UICollectionViewDragDelegate. Here are the steps to achieve Drag feature:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49906\" src=\"\/blog\/wp-ttn-blog\/uploads\/2017\/07\/Drag1-1024x767.png\" alt=\"Drag1\" width=\"625\" height=\"468\" srcset=\"https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag1-1024x767.png 1024w, https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag1-300x224.png 300w, https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag1-624x467.png 624w, https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag1.png 1266w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<ul>\n<li>First of all, you need to conform UICollectionViewDragDelegate to your collection view.<\/li>\n<li>Conform NSItemProvider to object that you want to drag<\/li>\n<li>Now implement required method of UIcollectionViewDragDelegate :<\/li>\n<\/ul>\n<p>[code language=&#8221;objc&#8221;]<br \/>\n\/\/ provide items to begin a drag associated with a given indexPath.<br \/>\nfunc collectionView(_ collectionView: UICollectionView, itemsForBeginning session: UIDragSession, at indexPath: IndexPath) -&amp;gt; [UIDragItem] {<\/p>\n<p>\t\/\/ access the selected obect from your data<br \/>\n\t\/\/ in my case imagesArray is array of UIImages<br \/>\n\tlet photo = imagesArray[indexPath.item]<\/p>\n<p>    \/\/ since UIImage already conforms to NSItemProvider writing, we can just use it<br \/>\n\t\/\/ to create an NSItemProvider. For your own model object, if you&#8217;re dragging<br \/>\n\t\/\/ something other than images, you&#8217;ll have to make sure that those objects<br \/>\n\t\/\/ conform to NSItemProvider writing.<br \/>\n    let itemProvider = NSItemProvider(object: photo)<\/p>\n<p>\t\/\/ now create drag item from NSItemProvider<br \/>\n    let dragItem = UIDragItem(itemProvider: itemProvider)<br \/>\n    return [dragItem]<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>This completes the basic implementation of Drag feature, but if you want to extend the functionality like Drag multiple items, then you can implement other optional methods of UIcollectionViewDragDelegate.<\/p>\n<p><strong>Drop Feature in UICollectionView<\/strong><\/p>\n<p>To implement Drag in UICollectionView Apple has introduced UICollectionViewDropDelegate. Here are the steps to achieve Drop feature:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49907\" src=\"\/blog\/wp-ttn-blog\/uploads\/2017\/07\/Drag4-1024x767.png\" alt=\"Drag4\" width=\"625\" height=\"468\" srcset=\"https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag4-1024x767.png 1024w, https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag4-300x224.png 300w, https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag4-624x467.png 624w, https:\/\/2thenew.today\/blog\/wp-content\/uploads\/2017\/07\/Drag4.png 1266w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<ul>\n<li>First of all, you need to conform UICollectionViewDropDelegate to your collection view.<\/li>\n<li>Now implement required method of UICollectionViewDropDelegate:<\/li>\n<\/ul>\n<p>[code language=&#8221;objc&#8221;]<br \/>\n\/\/ Called when the user initiates the drop<br \/>\nfunc collectionView(_ collectionView: UICollectionView, performDropWith coordinator: UICollectionViewDropCoordinator) {<\/p>\n<p>\t\/\/ destinationIndexPath is the indexpath where u want to drop object, set it<br \/>\n\t\/\/ to initial position if it is nil<br \/>\n\tlet destinationIndexPath = coordinator.destinationIndexPath ?? IndexPath(item: 0, section: 0)<\/p>\n<p>\t\/\/ use the dropCoordinator to specify how you wish to animate the dropSession&#8217;s<br \/>\n\t\/\/ items into their final position as well as update the collection view&#8217;s data<br \/>\n\t\/\/ source with data retrieved from the dropped items.<br \/>\n\tcoordinator.session.loadObjects(ofClass: (UIImage.self), completion: { (images) in<br \/>\n\t\tfor photo in images {<br \/>\n        \tself.imagesArray.insert(photo as! UIImage, at: destinationIndexPath.item)<br \/>\n            collectionView.performBatchUpdates({<br \/>\n            \tcollectionView.insertItems(at: [destinationIndexPath])<br \/>\n            })<br \/>\n        }<br \/>\n\t})<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>This completes the basic implementation of Drop feature between different apps, but if you want to extend the functionality like smooth drop transition Animations, move the item within collection view, then you can implement other optional methods of UIcollectionViewDropDelegate.<\/p>\n<p>Wow! You have learned the basic implementation of Drag &amp; Drop in UICollectionView.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In WWDC 2017 Apple has introduced Drag &amp; Drop Interaction API with iOS 11. This API will help to implement Drag &amp; Drop feature within the same application or between different iOS applications. But for now, this API is enabled only in iPad. Now we will learn how to implement Drag &amp; Drop feature in [&hellip;]<\/p>\n","protected":false},"author":172,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":17,"footnotes":""},"categories":[1400,1772,1],"tags":[4634,4632,4630,4631,4848,4635,379],"class_list":["post-49897","post","type-post","status-publish","format-standard","hentry","category-ios","category-mobility","category-technology","tag-collection-cell-drag","tag-drag-drop-api","tag-drag-interaction-api","tag-drop-interaction-api","tag-ios","tag-ios-11","tag-ui"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"The blog highlights the basic implementation of Drag &amp; Drop in UICollectionView.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ashu Baweja\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"The blog highlights the basic implementation of Drag &amp; Drop in UICollectionView.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The blog highlights the basic implementation of Drag &amp; Drop in UICollectionView.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#article\",\"name\":\"Basic Implementaion of Drag & Drop Feature with UICollectionView | TO THE NEW Blog\",\"headline\":\"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashu-bawejaintelligrape-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2017\\\/07\\\/Drag1-1024x767.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#articleImage\"},\"datePublished\":\"2017-07-14T12:01:12+05:30\",\"dateModified\":\"2017-07-14T15:14:08+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#webpage\"},\"articleSection\":\"iOS, Mobility, Technology, collection cell drag, drag &amp; drop api, drag interaction api, drop interaction api, iOS, iOS 11, UI\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#listItem\",\"name\":\"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#listItem\",\"position\":3,\"name\":\"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashu-bawejaintelligrape-com\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashu-bawejaintelligrape-com\\\/\",\"name\":\"Ashu Baweja\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d1e832c32f554b88da3e8f8fd33424aa41115be6faff0b06e6a94ebc2c2d0cba?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ashu Baweja\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/\",\"name\":\"Basic Implementaion of Drag & Drop Feature with UICollectionView | TO THE NEW Blog\",\"description\":\"The blog highlights the basic implementation of Drag & Drop in UICollectionView.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashu-bawejaintelligrape-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashu-bawejaintelligrape-com\\\/#author\"},\"datePublished\":\"2017-07-14T12:01:12+05:30\",\"dateModified\":\"2017-07-14T15:14:08+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Basic Implementaion of Drag & Drop Feature with UICollectionView | TO THE NEW Blog","description":"The blog highlights the basic implementation of Drag & Drop in UICollectionView.","canonical_url":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#article","name":"Basic Implementaion of Drag & Drop Feature with UICollectionView | TO THE NEW Blog","headline":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/ashu-bawejaintelligrape-com\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2017\/07\/Drag1-1024x767.png","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#articleImage"},"datePublished":"2017-07-14T12:01:12+05:30","dateModified":"2017-07-14T15:14:08+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#webpage"},"articleSection":"iOS, Mobility, Technology, collection cell drag, drag &amp; drop api, drag interaction api, drop interaction api, iOS, iOS 11, UI"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.today\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#listItem","name":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#listItem","position":3,"name":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/ashu-bawejaintelligrape-com\/#author","url":"https:\/\/2thenew.today\/blog\/author\/ashu-bawejaintelligrape-com\/","name":"Ashu Baweja","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d1e832c32f554b88da3e8f8fd33424aa41115be6faff0b06e6a94ebc2c2d0cba?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ashu Baweja"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#webpage","url":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/","name":"Basic Implementaion of Drag & Drop Feature with UICollectionView | TO THE NEW Blog","description":"The blog highlights the basic implementation of Drag & Drop in UICollectionView.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/ashu-bawejaintelligrape-com\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/ashu-bawejaintelligrape-com\/#author"},"datePublished":"2017-07-14T12:01:12+05:30","dateModified":"2017-07-14T15:14:08+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView | TO THE NEW Blog","og:description":"The blog highlights the basic implementation of Drag &amp; Drop in UICollectionView.","og:url":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView | TO THE NEW Blog","twitter:description":"The blog highlights the basic implementation of Drag &amp; Drop in UICollectionView.","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"49897","title":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView | #site_title","description":"The blog highlights the basic implementation of Drag &amp; Drop in UICollectionView.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:17:08","updated":"2024-02-29 08:28:08","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBasic Implementaion of Drag &amp; Drop Feature with UICollectionView\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Technology","link":"https:\/\/2thenew.today\/blog\/category\/technology\/"},{"label":"Basic Implementaion of Drag &amp; Drop Feature with UICollectionView","link":"https:\/\/2thenew.today\/blog\/basic-implementaion-of-drag-drop-feature-with-uicollectionview\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/49897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/172"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=49897"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/49897\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=49897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=49897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=49897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}