lukaskollmer
Aug 12, 2016 - 16:27
I struggled with that recently and just wanted to share my solution:
If you don't want the default x-Button at the left side of the title bar, just create a ui.NavigationView and present that instead
import ui
view = ui.View()
navigationView = ui.NavigationView(view)
# Add a close button
view.left_button_items = [ui.ButtonItem(title="Close", action=lambda x: navigationView.close())]
# Won't show the x-button
navigationView.present("sheet", hide_title_bar=True)