RouterAnnotation

@propertyWrapper
public struct RouterAnnotation

路由属性包装器注解 使用示例: @RouterAnnotation(AppRouter.pluginRouter(_:)) static var pluginUrl: String = “app://plugin/:id”

  • Undocumented

    Declaration

    Swift

    public init(wrappedValue value: String, _ handler: @escaping RouterHandler)
  • Undocumented

    Declaration

    Swift

    public init(_ pattern: String, handler: @escaping RouterHandler)
  • Undocumented

    Declaration

    Swift

    public var wrappedValue: String { get set }