TextAnchor

public struct TextAnchor : RawRepresentable, Codable, Hashable

Part of the text placed closest to the anchor.

  • Declaration

    Swift

    public let rawValue: String
  • Declaration

    Swift

    public init(rawValue: String)
  • The center of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let center: TextAnchor
  • The left side of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let left: TextAnchor
  • The right side of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let right: TextAnchor
  • top

    The top of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let top: TextAnchor
  • The bottom of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let bottom: TextAnchor
  • The top left corner of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let topLeft: TextAnchor
  • The top right corner of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let topRight: TextAnchor
  • The bottom left corner of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let bottomLeft: TextAnchor
  • The bottom right corner of the text is placed closest to the anchor.

    Declaration

    Swift

    public static let bottomRight: TextAnchor