Payload

public protocol Payload : _Payload

The Payload protocol is a set of user parameters.

This protocol inheritance to support type-inference of the compiler.

  • Write tuple type.

    Declaration

    Swift

    associatedtype Tuple = ()
  • Map the tuple to the parameters.

    Declaration

    Swift

    init(with argument: Tuple)

    Parameters

    argument

    Value of tuple type.