MultiDecoder

public class MultiDecoder<ResultType>

Simple pattern for trying to decode array elements as multiple types.

  • Adds the decoded result to results if decoding succeeds, otherwise does nothing.

    Declaration

    Swift

    public func tryDecoding<T>(_ type: T.Type) where T : Shape