LegacyTag

public final class LegacyTag : Codable
extension LegacyTag: Equatable
extension LegacyTag: CustomStringConvertible

A tag is just a unique name that can be associated with zero or more sound fonts. By default there is an ‘all’ tag which matches all sound fonts, and a ‘built-in’ tag that shows just those that come with the app.

  • Key

    Type of the unique key associated with a tag

    Declaration

    Swift

    public typealias Key = UUID
  • Key

    Declaration

    Swift

    extension LegacyTag.Key: SettingSerializable
  • The ‘All’ tag to which all sound fonts belong

    Declaration

    Swift

    public static let allTag: LegacyTag
  • The ‘Built-in’ tag to which all packaged sound fonts belong

    Declaration

    Swift

    public static let builtInTag: LegacyTag
  • A set containing the two tags above.

    Declaration

    Swift

    public static let stockTagSet: Set<LegacyTag.Key>
  • A set containing just the ‘all’ tag above. This is a convenience for generating the set of tags for a sound font.

    Declaration

    Swift

    public static let allTagSet: Set<LegacyTag.Key>
  • key

    The unique key for the tag.

    Declaration

    Swift

    public let key: Key
  • The name of the tag. Unlike the key, the name can be changed.

    Declaration

    Swift

    public var name: String
  • True if the tag is a user-created tag, with a name that they can edit.

    Declaration

    Swift

    public var isUserTag: Bool { get }
  • Construct new tag instance.

    Declaration

    Swift

    public init(name: String)

    Parameters

    name

    the name to show for the tag

  • Allow for equality comparison based on tag key

    Declaration

    Swift

    public static func == (lhs: LegacyTag, rhs: LegacyTag) -> Bool

    Parameters

    lhs

    left-hand tag to compare

    rhs

    right-hand tag to compare

    Return Value

    true if the tags are the same

  • Custom description for Tag instances

    Declaration

    Swift

    public var description: String { get }