Skip to content

Input bar becomes hidden because of outer circumstances and never appears again #267

@gerchicov-vg

Description

@gerchicov-vg

Describe the bug
When I present SKStoreReviewController the input bar moves down behind the device borders and never comes back if the app has nested navigation/tabbar controllers.

To Reproduce
Steps/code to reproduce the behavior:
Just take example code and add somewhere inside view controller the following code (for example in viewDidLoad with delay):

import StoreKit
...
        DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
            SKStoreReviewController.requestReview()
        }

Then in AppDelegate add some levels of nested controllers. In my case I used the following code:

let tabbarController = UITabBarController()
        tabbarController.viewControllers = [
            UINavigationController(rootViewController: InputBarStyleSelectionController())
        ]
        window?.rootViewController = UINavigationController(rootViewController: tabbarController)

Expected behavior
Input bar persists or at least appears back after SKStoreReviewController.

Screenshots
Input bar just disappears and never returns back

Environment

  • What version of InputBarAccessoryView are you using? 5.4.0 and 6.40 (latest)
  • What version of iOS are you running on? iOS 17.1.1
  • What version of Swift are you running on? Swift 5
  • What device(s) are you testing on? Are these simulators? iPhone SE 2020
  • Is the issue you're experiencing reproducable in the example app? Yes

Additional context
Related issue:
#266

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions