Types
@objcMembers public final class Types: NSObject, SourceryModel
Collection of scanned types for accessing in templates
-
All known types, excluding protocols
Declaration
Swift
public lazy internal(set) var all: [Type] =
-
All known protocols
Declaration
Swift
public lazy internal(set) var protocols: [Protocol] =
-
All known classes
Declaration
Swift
public lazy internal(set) var classes: [Class] =
-
All known structs
Declaration
Swift
public lazy internal(set) var structs: [Struct] =
-
All known enums
Declaration
Swift
public lazy internal(set) var enums: [Enum] =
-
All known extensions
Declaration
Swift
public lazy internal(set) var extensions: [Type] =
-
Types based on any other type, grouped by its name, even if they are not known.
types.based.MyType
returns list of types based onMyType
Declaration
Swift
public lazy internal(set) var based: TypesCollection =
-
Classes inheriting from any known class, grouped by its name.
types.inheriting.MyClass
returns list of types inheriting fromMyClass
Declaration
Swift
public lazy internal(set) var inheriting: TypesCollection =
-
Types implementing known protocol, grouped by its name.
types.implementing.MyProtocol
returns list of types implementingMyProtocol
Declaration
Swift
public lazy internal(set) var implementing: TypesCollection =