Contents

perform()

Performs a widget’s configured action, like opening another app or performing an App Shortcut, custom shortcut, or system action.

Declaration

func perform() async throws -> IntentResultContainer<Never, Never, Never, Never>

Discussion

The system only performs the intent if it’s triggered by a button you place in widget. The intent doesn’t have any effect in other contexts.