Contents

feedback(title:shortTitle:status:_:)

Creates a command that handles user feedback (positive, neutral, or negative) for the current content.

Declaration

static func feedback(title: String? = nil, shortTitle: String? = nil, status: MediaCommand.FeedbackStatus = .neutral, _ action: @escaping (MediaCommand.FeedbackStatus) async throws -> Void) -> MediaCommand

Parameters

  • title:

    A localized string that describes the context of the command.

  • shortTitle:

    A shortened version of the title.

  • status:

    The current feedback status for the content.

  • action:

    The closure the system calls when the user changes the feedback status.

See Also

Providing feedback