Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 14: custom inputAccessoryView appears prematurely, causing broken push animation #247

Open
JCsplash opened this issue Jun 10, 2023 · 3 comments

Comments

@JCsplash
Copy link

After upgrading to xcode 14, override of the inputAccessoryView of a UIViewController causes animation issues during push / pop UINavigationController transitions. (on xcode 13, no issues)

    override var inputAccessoryView: UIView? {
        return myCustomInputBar
    }

    override var canBecomeFirstResponder: Bool{
        return true
    }

The two main issues are:

  1. The inputAccessoryView flashes / appears above the current view you're transitioning away from. (inputAccessoryView should display only within the confines of it's UIViewController)

  2. The push / pop transition animation is not smooth. The new screen moves forward and then backwards briefly before continuing forward again.

https://developer.apple.com/forums/thread/721301 (this issue mentions the same thing)

Here's screenshots of the inputAccessoryView appearing prematurely:

Simulator Screenshot - iPhone 14 Pro - 2023-06-10 at 14 34 11
Screenshot 2023-06-10 at 2 27 13 PM

Here's some videos:

InputBar-Pop-Transition-Flash.mp4
InputBar-Push-Transition-Flash.mp4
@JCsplash
Copy link
Author

@nathantannar4 @Kaspik would love to hear if you guys have noticed this issue too on Xcode 14 and if there's any solutions? - besides showing inputBar in "viewDidAppear" which causes a significant delay

@JCsplash
Copy link
Author

JCsplash commented May 5, 2024

@nathantannar4 any idea how to fix this? Still an issue in xcode 15.

@nathantannar4
Copy link
Owner

Not aware of a fix sorry. Seems like Apple broke something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants