Skip to content

Simple example #516

Closed Answered by LeoNatan
victor999 asked this question in General
Sep 19, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi Victor,
Do you mind sharing what you have attempted and failed?
The docs show you exactly what you need to do, in order to display a view controller as the popup content controller from a tab bar controller:

//Load the content controller by initializing it, from a storyboard, or any other way
let demoVC = DemoPopupContentViewController()

//Set the popup item, so that content appears on the popup bar:
demoVC.popupItem.title = "Hello World"
demoVC.popupItem.subtitle = "And a subtitle!"
demoVC.popupItem.progress = 0.34

//Present the popup bar from the tab bar controller, with content from the demoVC content view controller:
tabBarController?.presentPopupBar(withContentViewController: de…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@victor999
Comment options

Answer selected by LeoNatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants