ModuleAnnotation

@propertyWrapper
public struct ModuleAnnotation<T>

模块属性包装器注解 使用示例: @ModuleAnnotation(UserModuleService.self) static var userModule: UserModuleService

  • Undocumented

    Declaration

    Swift

    public init(_ serviceProtocol: Protocol)
  • Undocumented

    Declaration

    Swift

    public init(_ serviceProtocol: Protocol, module: ModuleProtocol.Type)
  • Undocumented

    Declaration

    Swift

    public var wrappedValue: T { get set }