Protocols

The following protocols are available globally.

  • Slight expansion over part. Allows you to express more expressively the entry point to the framework of you application. It isn’t necessary to create several such classses on one framework - it willn’t be convenient.

    See more

    Declaration

    Swift

    public protocol DIFramework : AnyObject
  • Class to maintain code hierarchy. It’s necessary for it to be convenient to combine some parts of the system into one common class, and in future to include the part, rather than some list components.

    See more

    Declaration

    Swift

    public protocol DIPart : AnyObject
  • Protocol to indicate which classes should be included in scan. Don’t use this opportunity thoughtlessly - use it only if you don’t know in advance number of parts or frameworks in the application.

    Declaration

    Swift

    public protocol DIScanned