GenericType

@objcMembers
public final class GenericType : NSObject, SourceryModelWithoutDescription, Diffable
extension GenericType: NSCoding

Descibes Swift generic type

  • The name of the base type, i.e. Array for Array<Int>

    Declaration

    Swift

    public var name: String
  • This generic type parameters

    Declaration

    Swift

    public let typeParameters: [GenericTypeParameter]
  • Declaration

    Swift

    public var asSource: String { get }
  • Declaration

    Swift

    public override var description: String { get }
  • Declaration

    Swift

    public func diffAgainst(_ object: Any?) -> DiffableResult