This page contains a list of functions defined in the pyto_ui module.

pyto_ui.font_family_names() → List[str]

Returns all font family names that can be used to initialize a font.

Return type:List[str]
pyto_ui.image_with_system_name(name: str) → None

Returns a system symbol image from given name. The return value is an UIKit UIImage object, so it can only be used on the pyto_ui library. More info about symbols on Apple’s Web Site .

Parameters:name – The name of the SF Symbol.
Return type:UIImage
pyto_ui.show_view(view: pyto_ui.View, mode: ui_constants.PRESENTATION_MODE)

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, if the view has a custom size, it will be used for the presentation.

  • view – The View object to present.
  • mode – The presentation mode to use. The value will be ignored on a widget. See Presentation Mode constants for possible values.