AnyShortcut

public struct AnyShortcut : Shortcut

A type-erased wrapper for a Shortcut object

  • Declaration

    Swift

    public typealias Body = Never
  • Declaration

    Swift

    public var body: Never { get }
  • Declaration

    Swift

    public init<Base>(_ base: Base) where Base : Shortcut

    Parameters

    base

    The underlying shortcut whose type to erase.