{"id":42288,"date":"2017-11-07T04:49:54","date_gmt":"2017-11-07T11:49:54","guid":{"rendered":"http:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/"},"modified":"2017-11-07T04:49:54","modified_gmt":"2017-11-07T11:49:54","slug":"how-to-create-facebook-like-swipe-pulltodismiss","status":"publish","type":"post","link":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/","title":{"rendered":"How to create Facebook like Swipe, PullToDismiss."},"content":{"rendered":"<p><em>\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d<\/em><br \/>?\u2014<strong>?<em>Shawn\u00a0Borsky<\/em><\/strong><\/p>\n<p>I have been great in love with gesture-based apps, One of my favorites was \u201c<strong>Paper by Facebook\u201d<\/strong> which was available only in US, Where everything was operated with gestures <a href=\"https:\/\/www.theverge.com\/2016\/6\/30\/12062124\/facebook-paper-shutdown\">but eventually Facebook pulled down that app<\/a>. <strong>Facebook<\/strong> has learned a lot from \u201c<strong>Paper<\/strong>\u201d experience and they have put a lot of features in their existing Facebook app from\u00a0it.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AqJTZWbrDMHVb1pUWtdB1rQ.jpeg?w=900\"><\/figure>\n<p>We all use Facebook app and we love it. From the user point of view, I love some of the ease gesture like when we go to any post to view comments or photos and then we can <strong>Swipe Left<\/strong> OR <strong>Pull the Post Down or Up<\/strong> to get back to News\u00a0Feed.<\/p>\n<p>Today we are going to learn how to implement this gesture-based dismissal of UIViewController like Facebook\u00a0app.<\/p>\n<p>To start with I will create a Demo Project with <strong>Master<\/strong> and <strong>Detail<\/strong> View where Master has Button \u201cGo To Detail\u201d to navigate to Detail Page and Detail Page is UITableViewController with multiple sections.<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AVqubKKVpGtiKW2TvZyv9Lw.gif?w=900\"><\/figure>\n<p>To implement the Interactive Gesture dismissal we will take help of UIPanGestureRecognizer<strong> <\/strong>for animation, we will use the popular transition framework <a href=\"https:\/\/github.com\/lkzhao\/Hero\"><strong>Hero<\/strong><\/a>. <a href=\"https:\/\/github.com\/lkzhao\/Hero\"><strong>Hero<\/strong><\/a> is a framework for building iOS view controller transitions. It provides a declarative layer on top of the UIKit\u2019s cumbersome transition APIs?\u2014?making custom transitions an easy task for developers.<\/p>\n<h3><strong>Note<\/strong>\u00a0:-<\/h3>\n<p>I recommend readers to check the demo project of <a href=\"https:\/\/github.com\/lkzhao\/Hero\"><strong>Hero<\/strong><\/a>, As this project uses this framework heavily. You can check these <a href=\"https:\/\/medium.com\/the-code-community\/hello-x-cool-swift-3-transition-framework-ddada37db819\">article<\/a> on <a href=\"https:\/\/github.com\/lkzhao\/Hero\"><strong>Hero<\/strong><\/a> framework to learn how to integrate and use it in your project as we are not covering this part in this article. I am listing some the method call which I will be using from this framework.<\/p>\n<ol>\n<li>self.heroModalAnimationType\u00a0,\u00a0.uncover,\u00a0.cover to set animation of view dismissal.<\/li>\n<li>Hero.shared.update, Hero.shared.apply, Hero.shared.finish, Hero.shared.cancel to translate the view based on pan\u00a0gesture.<\/li>\n<\/ol>\n<h4>Ok enough talk\u2019s now lets\u00a0code.<\/h4>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AyvRgX5cJ4dukQPDSymA2lg.jpeg?w=900\"><\/figure>\n<h3><strong>Extension\u00a0:-<\/strong><\/h3>\n<p>We will use two helper <strong>Extension<\/strong> so that it will help us to achieve our\u00a0goal.<\/p>\n<ol>\n<li>One for detecting the direction of UIPanGestureRecognizer.<\/li>\n<li>Second for detecting whether UIScrollView is at top or\u00a0bottom<\/li>\n<\/ol>\n<p>Below is extension for UIPanGestureRecognizer for detecting direction of Pan\u00a0gesture.<\/p>\n<p><a href=\"https:\/\/medium.com\/media\/b10ff7347832bad8f512203f4c5a57e5\/href\">https:\/\/medium.com\/media\/b10ff7347832bad8f512203f4c5a57e5\/href<\/a><\/p>\n<p>Below is extension for UIScrollView for detecting the UITableView is at <strong>bottom<\/strong> or\u00a0<strong>top<\/strong>.<\/p>\n<p><a href=\"https:\/\/medium.com\/media\/8c065f438de765b59c68134addabf031\/href\">https:\/\/medium.com\/media\/8c065f438de765b59c68134addabf031\/href<\/a><\/p>\n<h3>Detail View\u00a0:-<\/h3>\n<p>Now to start with we will create a variable of UIPanGestureRecognizer and add this gesture to detail\u00a0view.<\/p>\n<pre>\/\/ PanGesture Variable<br>var panGR : UIPanGestureRecognizer!<\/pre>\n<pre>\/\/ Detect current direction.<br>var progressBool : Bool = false<\/pre>\n<pre>\/\/ Hero dismiss bool to track dismissal<br>var dismissBool : Bool = true<\/pre>\n<pre>override func viewDidLoad() {<br><br> super.viewDidLoad()<\/pre>\n<pre>\/\/Setup<br> panGR = UIPanGestureRecognizer(target: self, action: #selector(pan))<br> panGR.delegate = self<\/pre>\n<pre> view.backgroundColor = UIColor.white<br> view.addGestureRecognizer(panGR)<br><br> }<\/pre>\n<p>Ok now, let\u2019s write the most important module which will handle the dismissal of UIViewController<\/p>\n<p><a href=\"https:\/\/medium.com\/media\/3754fd89a1019af8184785c72430d08a\/href\">https:\/\/medium.com\/media\/3754fd89a1019af8184785c72430d08a\/href<\/a><\/p>\n<p>Let\u2019s break this in to multiple parts to understand what exactly is happening inside\u00a0this.<\/p>\n<ol>\n<li>Monitor the <strong>translation<\/strong> of\u00a0view<\/li>\n<li>Monitor the <strong>direction<\/strong> of\u00a0view<\/li>\n<li>Monitor the UIPanGestureRecognizer different states(changed and\u00a0end)<\/li>\n<\/ol>\n<ul>\n<li>Gesture state changed to Translate the view according to the user pan\u00a0gesture.<\/li>\n<li>Gesture state end to finish the animation.<\/li>\n<\/ul>\n<p>Let\u2019s look in to each part one by\u00a0one<\/p>\n<h4><strong>1.<\/strong> <strong>Monitor the translation of view\u00a0:-<\/strong><\/h4>\n<pre>        let translation = panGR.translation(in: nil)<br>        let progressX = (translation.x \/ 2 ) \/ view.bounds.width<br>        let progressY = (translation.y \/ 2 ) \/ view.bounds.height<\/pre>\n<p>This part helps us to know how the much the view is translated relative to View both in X and Y direction.<\/p>\n<h4><strong>2<\/strong>. <strong>Monitor the direction of view\u00a0:-<\/strong><\/h4>\n<pre>        if((recognizer.direction == .up && tableView.isAtBottom) || (recognizer.direction == .down && tableView.isAtTop)){<\/pre>\n<pre>\/* When the tableview is panned down and tableview is at bottom <br>OR<br>   When the tableview is panned up and tableview is at top<br>*\/       <\/pre>\n<pre>            if(dismissBool){<br>                dismissBool = false<br>                hero_dismissViewController()<br>                self.heroModalAnimationType = tableView.isAtTop ? .uncover(direction: .down) : .uncover(direction: .up)<br>                progressBool = true<br>                recognizer.setTranslation(.zero, in: view)<br><br>            }<br><br><br>        }else if(recognizer.direction == .left || recognizer.direction == .right){<\/pre>\n<pre>\/\/When the tableview or view is panned left and right<\/pre>\n<pre>            if(translation.x > 0){<br>                if(dismissBool){<br>                    dismissBool = false<br>                    hero_dismissViewController()<br>                    self.heroModalAnimationType = .uncover(direction: .right)<br>                    recognizer.setTranslation(.zero, in: view)<br><br>                }<br><br>            }<br><br>        }<\/pre>\n<p>This part triggers when the required Pan direction is met. dismissBool is used to track hero_dismissViewController() and to set the animation type of dismissal of viewcontroller, Called only once throughout the start of Pangesture.<\/p>\n<h4>3. Gesture\u00a0States<\/h4>\n<p><strong>3.1<\/strong> Gesture states\u00a0.<strong>changed<\/strong> to Check the pan direction the user initiated\u00a0:-<\/p>\n<pre>                if(progressBool){<\/pre>\n<pre>               \/\/ Pan direction up and down<br>                let currentPos = CGPoint(x: view.center.x , y: translation.y + view.center.y)<br>                Hero.shared.update(progressY)<br>                Hero.shared.apply(modifiers: [.position(currentPos)], to: view)<br><br>            }else{<br><br>                if(translation.x > 0 ){<\/pre>\n<pre>                   \/\/ Pan direction left and right<br>                    let currentPos = CGPoint(x: translation.x + view.center.x , y: view.center.y)<br>                    Hero.shared.update(progressX)<br>                    Hero.shared.apply(modifiers: [.position(currentPos)], to: view)<br><br>                }<br><br>            }<\/pre>\n<p>This is the part where the actual magic happens, It controls the translation of the view based on user\u2019s pan gesture direction.<\/p>\n<p><strong>3.2<\/strong> Gesture state\u00a0.<strong>end<\/strong> to finish the animation\u00a0:-<\/p>\n<pre>            dismissBool = true<br>            progressBool = false<\/pre>\n<pre>\/\/for direction up and down<br>            if fabs(progressY + recognizer.velocity(in: nil).y \/ view.bounds.height ) > 0.5 {<br>                Hero.shared.finish()<br>            }<\/pre>\n<pre>\/\/for direction left and right<br>            else if progressX + recognizer.velocity(in: nil).x \/ view.bounds.width > 0.5 {<br>                Hero.shared.finish()<br>            }<\/pre>\n<pre>\/\/cancel the animation<br>            else {<br>                Hero.shared.cancel()<br>                self.heroModalAnimationType = .uncover(direction: .right)<br><br>            }<\/pre>\n<p>This part is to end animation, It checks if view is translated more the required condition which is 0.5 then it dismisses the ViewController Or Not. It also resets all variable as gesture as\u00a0ended.<\/p>\n<h3><strong>Final Demo<\/strong><\/h3>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AqSDIV8i0l9-TSa2OPBmbBw.gif?w=900\"><\/figure>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AWohXGJz_ZCV8JSlXrTLFcQ.gif?w=900\"><\/figure>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AnIaZSTZnISHu0PvEtNtM0Q.gif?w=900\"><figcaption>left, down,\u00a0up<\/figcaption><\/figure>\n<p>You can check the demo\u00a0<a href=\"https:\/\/github.com\/mukyasa\/MMPullSwipeDismiss\"><strong>here<\/strong><\/a>.<\/p>\n<h3>Final Remarks<\/h3>\n<p>This is my first Medium post. If there is anything about it you don\u2019t like or any tips you have for me, please feel free to leave some comments.<\/p>\n<p>If you like what you read, please <strong>clap <\/strong>the article and <strong>share\u00a0<\/strong>. Also, if you have any suggestions on what you would like to see next, please let me know in the comments\u00a0below.<\/p>\n<p>You can also check my other projects on my <a href=\"https:\/\/github.com\/mukyasa\"><strong>Github<\/strong><\/a>\u00a0profile.<\/p>\n<p><a href=\"https:\/\/github.com\/mukyasa\">mukyasa (Mukesh Mandora)<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/medium.com\/_\/stat?event=post.clientViewed&#038;referrerSource=full_rss&#038;postId=5480b186f809\" width=\"1\" height=\"1\"><\/p>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn\u00a0Borsky I have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has&#8230;<a class=\"moretag\" href=\"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/\"> Read the full article&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[15],"tags":[],"class_list":["post-42288","post","type-post","status-publish","format-standard","hentry","category-general-info"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Guest Contribution\"\/>\n\t<meta name=\"keywords\" content=\"general info\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/\" \/>\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=\"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies\" \/>\n\t\t<meta property=\"og:description\" content=\"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-11-07T11:49:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-11-07T11:49:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned\" \/>\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.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#article\",\"name\":\"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies\",\"headline\":\"How to create Facebook like Swipe, PullToDismiss.\",\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/12AqJTZWbrDMHVb1pUWtdB1rQ.jpeg\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#articleImage\"},\"datePublished\":\"2017-11-07T04:49:54-07:00\",\"dateModified\":\"2017-11-07T04:49:54-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#webpage\"},\"articleSection\":\"General Info\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/#listItem\",\"name\":\"General Info\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/#listItem\",\"position\":2,\"name\":\"General Info\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#listItem\",\"name\":\"How to create Facebook like Swipe, PullToDismiss.\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#listItem\",\"position\":3,\"name\":\"How to create Facebook like Swipe, PullToDismiss.\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/#listItem\",\"name\":\"General Info\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/\",\"name\":\"Guest Contribution\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Guest Contribution\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#webpage\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/\",\"name\":\"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies\",\"description\":\"\\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\\u201d?\\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \\u201cPaper by Facebook\\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2017\\\/11\\\/how-to-create-facebook-like-swipe-pulltodismiss\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"datePublished\":\"2017-11-07T04:49:54-07:00\",\"dateModified\":\"2017-11-07T04:49:54-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies","description":"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned","canonical_url":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/","robots":"max-image-preview:large","keywords":"general info","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#article","name":"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies","headline":"How to create Facebook like Swipe, PullToDismiss.","author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2017\/11\/12AqJTZWbrDMHVb1pUWtdB1rQ.jpeg","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#articleImage"},"datePublished":"2017-11-07T04:49:54-07:00","dateModified":"2017-11-07T04:49:54-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#webpage"},"isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#webpage"},"articleSection":"General Info"},{"@type":"BreadcrumbList","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.taterboy.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/#listItem","name":"General Info"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/#listItem","position":2,"name":"General Info","item":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#listItem","name":"How to create Facebook like Swipe, PullToDismiss."},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#listItem","position":3,"name":"How to create Facebook like Swipe, PullToDismiss.","previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/#listItem","name":"General Info"}}]},{"@type":"Organization","@id":"https:\/\/www.taterboy.com\/blog\/#organization","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","url":"https:\/\/www.taterboy.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author","url":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/","name":"Guest Contribution","image":{"@type":"ImageObject","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g","width":96,"height":96,"caption":"Guest Contribution"}},{"@type":"WebPage","@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#webpage","url":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/","name":"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies","description":"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/#breadcrumblist"},"author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"creator":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"datePublished":"2017-11-07T04:49:54-07:00","dateModified":"2017-11-07T04:49:54-07:00"},{"@type":"WebSite","@id":"https:\/\/www.taterboy.com\/blog\/#website","url":"https:\/\/www.taterboy.com\/blog\/","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","og:type":"article","og:title":"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies","og:description":"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned","og:url":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/","article:published_time":"2017-11-07T11:49:54+00:00","article:modified_time":"2017-11-07T11:49:54+00:00","twitter:card":"summary","twitter:title":"How to create Facebook like Swipe, PullToDismiss. | Design for Immersive Technologies","twitter:description":"\u201cAt the end of the day is how the user remembers the experience. Focus on key experiences.\u201d?\u2014?Shawn BorskyI have been great in love with gesture-based apps, One of my favorites was \u201cPaper by Facebook\u201d which was available only in US, Where everything was operated with gestures but eventually Facebook pulled down that app. Facebook has learned"},"aioseo_meta_data":{"post_id":"42288","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"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,"location":null,"local_seo":null,"created":"2021-02-08 05:50:15","updated":"2026-08-31 02:29:33","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"limit_modified_date":false,"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:\/\/www.taterboy.com\/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:\/\/www.taterboy.com\/blog\/category\/general-info\/\" title=\"General Info\">General Info<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to create Facebook like Swipe, PullToDismiss.\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.taterboy.com\/blog"},{"label":"General Info","link":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/"},{"label":"How to create Facebook like Swipe, PullToDismiss.","link":"https:\/\/www.taterboy.com\/blog\/2017\/11\/how-to-create-facebook-like-swipe-pulltodismiss\/"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8wzr5-b04","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/42288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/comments?post=42288"}],"version-history":[{"count":0,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/42288\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media?parent=42288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/categories?post=42288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/tags?post=42288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}