marcosgriselli / marcosgriselli/SwipeableTabBarController

Very quick swipes cause app to freeze

Open
#52 37 comments 0 reactions 1 assignee View on GitHub

@marcosgriselli is already working on this.

Since Jan 20, 2019.

:dollar: Funded on Issuehunt bug
Dominant language
Swift
Stars
1.5k
Forks
108
PR merge metrics
No merged PRs in 30d

Description

Issuehunt badges

On iOS 12.0.1, iPhone X with SwipeableTabBarController 1.4.0. Initially, produced in my app and then reproduced on the sample app.

Issue: Swipe very quick (velocity.x > 1500, even up to 4000) causes the app to sometime freeze. The tabs may still work (they select but nothing else changes).

Reproduction steps:

  1. Make this change in the sample app to make it easier to reproduce:
    In TabBarController.swift, line 17, change selectedViewController = viewControllers![1] to selectedViewController = viewControllers![0]

  2. Run the app on a real device

  3. Slowly swipe from right to left so that the screen tracks your finger.

  4. From the middle screen, very quickly swipe from right to left. You need to be quick enough so that the tab changes without tracking your finger. It seems to happen most often when velocity.x is over 1500.

  5. If the bug does not occur, you must kill the app and restart as the issue will not occur once each screen has been displayed.

I have not been able to fix this myself as of yet but I have noticed that UIView.animate has been called and the completion handler is never fired when the issue occurs.


IssueHunt Summary
Backers (Total: $150.00)
Submitted pull Requests

Become a backer now!
Or submit a pull request to get the deposits!
Tips

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.