show_view¶
- pyto_ui.show_view(view: View, mode: PresentationMode = None)¶
Presents the given view.
This function doesn’t return until the view is closed. You can use another thread to perform background tasks and modify the UI after it’s presented.
On iPad and Mac, if the view has a custom size, it will be used for the presentation.
- Parameters:
view – The
Viewobject to present.mode – The presentation mode to use. The default value is ‘SHEET’. See
Presentation Modeconstants for possible values.