This is particularly important for games.
Replies
You can overwrite the top view controller's prefersHomeIndicatorAutoHidden method and return YES. That auto-hides the home indicator for devices that have one, but also apparently auto-hides the multitasking menu on iPads with iPadOS 15, even if they don't have a home indicator.
-
That works, thanks! But I did have to do the overrides in the child view controllers and not just in the tab bar controller.
-
I haven't tried this with a tab bar controller, so it's good to know, thanks. In my case, I didn't need to make this change with a navigation controller, just with its root view controller. So I'm guessing the same may be true with a tab bar controller, i.e. may not need to change the tab bar controller, just the child view controllers.
-
—
GilW
Add a CommentI noticed it on some apps that don't actually support multitasking. Perhaps there it is on by default although it isn't there on the home screen....