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 View object to present.

  • mode – The presentation mode to use. The default value is ‘SHEET’. See Presentation Mode constants for possible values.