Structures

The following structures are available globally.

  • Injects and resolves a service immediately.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct Injected<Service>
  • Injects and resolves a service when accessed for the first time.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct LazyInjected<Service>
  • Injects and resolves an optional service immediately.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct OptionalInjected<Service>
  • Injects and resolves an optional service when accessed for the first time and deallocates it when there is no strong reference left to it.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct WeakLazyInjected<Service> where Service : AnyObject