I want to use swipeback on a screen that uses XLPagerTabStrip

problem

If the destination screen transitioned by NavigationController uses XLPagerStrip, it will be pulled by the placed containerView (UIScrollView). Swipe back (ʻInteractive Pop Gesture`) doesn't work.

solution

Add the following code to viewWillAppear.

Do you want containerView Gesture to be executed when NavigationController Gesture fails? Feeling like that.

if let naviVc = self.navigationController {
    self.containerView.panGestureRecognizer.require(toFail: naviVc.interactivePopGestureRecognizer!)
}

Reference site

Recommended Posts

I want to use swipeback on a screen that uses XLPagerTabStrip
I want to use screen sharing on the login screen on Ubuntu 18
I want to use a little icon in Rails
[Android Studio] I want to use Maven library on Android
I want to use PowerMock in a class that combines parameterized tests and ordinary tests
I want to use FireBase to display a timeline like Twitter
I want to use FormObject well
Implemented a strong API for "I want to display ~~ on the screen" with simple CQRS
I want to create a chat screen for the Swift chat app!
I want to add a browsing function with ruby on rails
I want to develop a web application!
A memorandum on how to use Eclipse
I want to write a nice build.gradle
I want to display background-ground-image on heroku.
I want to use DBViewer with Eclipse 2018-12! !!
I want to write a unit test!
I want to install PHP 7.2 on Ubuntu 20.04.
I want to use @Autowired in Servlet
[Swift] If you want to use a URL that includes Japanese, use addingPercentEncoding.
I want to use arrow notation in Ruby
[Ruby] I want to do a method jump!
I want to use java8 forEach with index
I want to simply write a repeating string
I want to design a structured exception handling
I want to play a GIF image on the Andorid app (Java, Kotlin)
Rspec: I want to test the post-execution state when I set a method on subject
[Ruby] I want to make a program that displays today's day of the week!
I want to go back to a specific VC by tapping the back button on the NavigationBar!
I want to use Combine in UIKit as well.
I want to use Clojure's convenient functions in Kotlin
[MyBatis] I want to map a query query to a table that has a one-to-many relationship to a nested bean
I want to call a method of another class
I want to use fish shell in Laradock too! !!
I want to use ES2015 in Java too! → (´ ・ ω ・ `)
I want to monitor a specific file with WatchService
I want to define a function in Rails Console
I want to place RadioButtons in the same RadioGroup at any position on the screen.
7 things I want you to keep so that it doesn't become a fucking code
I want to add a reference type column later
I want to click a GoogleMap pin in RSpec
I want to simplify the log output on Android
A story I was addicted to when getting a key that was automatically tried on MyBatis
I want to connect to Heroku MySQL from a client
I want to create a generic annotation for a type
A story that I had a hard time trying to build PHP 7.4 on GCE's CentOS 8
I want to add a delete function to the comment function
I want to implement it additionally while using kotlin on a site running Java
I want to use Java Applet easily on the command line without using an IDE
A note that I had trouble when trying to use nginx with Remote-Containers of vscode
I want to write a loop that references an index with Java 8's Stream API
[Java] I tried to make a rock-paper-scissors game that beginners can run on the console.
[Beginner] I want to modify the migration file-How to use rollback-
I tried adding a separator line to TabLayout on Android
[Java] I want to convert a byte array to a hexadecimal number
I want to find a relative path in a situation using Path
Links that I referred to before running Elasticsearch 7.7 on Java 11
I want to implement a product information editing function ~ part1 ~
I want to make a specific model of ActiveRecord ReadOnly
I want to make a list with kotlin and java!
I want to call a method and count the number
I want to make a function with kotlin and java!