TweakTradeSource

public protocol TweakTradeSource

A type that represents a import source.

  • The name of the source.

    This will be displayed in the tweak UI.

    Declaration

    Swift

    var name: String { get }
  • Receives tweak data.

    Declaration

    Swift

    func receive(completion: @escaping (Result<TweakTradeCargo, Error>) -> Void)

    Parameters

    completion

    The handler block for you to execute after you have performed the operation. This block has no return value and takes the following parameter: