Skip to content

PopupBar is disappearing after hidesBottomBarWhenPushed #531

Closed Answered by LeoNatan
STIFFMEISTER-UA asked this question in General
Discussion options

You must be logged in to vote

Hello,
Presenting/dismissing the popup bar during toolbar or tab bar hiding/showing transition is not supported. I suggest you present/dismiss the popup bar either in viewDidAppear/viewDidDisappear, or, preferably, using

override func viewWillDisappear(_ animated: Bool) {
	super.viewWillDisappear(animated)

	transitionCoordinator?.animate(alongsideTransition: nil, completion: { context in
		guard context.isCancelled == false else { return }
		
		self.tabBarController?.presentPopupBar(withContentViewController: UIViewController(), animated: true)
	})
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeoNatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants
Converted from issue

This discussion was converted from issue #530 on December 24, 2022 10:41.