nathantannar4 / InputBarAccessoryView

A simple and easily customizable InputAccessoryView for making powerful input bars with autocomplete and attachments
MIT License
1.17k stars 229 forks source link

Hidden message if use splitView and tab bar #215

Closed MarkyAli closed 2 years ago

MarkyAli commented 3 years ago

Last message is hidden with InputAccesorie View.

Update example code in AppDelegate:

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        let split = UISplitViewController()

        split.viewControllers = [UINavigationController(rootViewController: InputBarStyleSelectionController()), UINavigationController()]

        let tabbar = UITabBarController()

        let new = UINavigationController()
        tabbar.viewControllers = [split,new]
        split.tabBarItem = UITabBarItem(tabBarSystemItem: .bookmarks, tag: 0)
        new.tabBarItem = UITabBarItem(tabBarSystemItem: .bookmarks, tag: 1)

        window = UIWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = tabbar
        window?.makeKeyAndVisible()

        return true
    }
}
Screenshot 2021-08-05 at 13 41 27
Kaspik commented 2 years ago

Is this still an issue? if soo, I guess you have to account with content offset.