OptionalParameter

public enum OptionalParameter<T>

Type for updating optional parameters - parameters that can either have value of some type, or be nil. Should be used mainly with optinal method parameters to differentiate between ignored parameter and parameter with a nil value.

  • Specifies value that should be set to a parameter

    Declaration

    Swift

    case value(T)
  • Empty value representing null

    Declaration

    Swift

    case empty