TextAnchor

public enum TextAnchor : String, Codable

Part of the text placed closest to the anchor.

  • The center of the text is placed closest to the anchor.

    Declaration

    Swift

    case center
  • The left side of the text is placed closest to the anchor.

    Declaration

    Swift

    case left
  • The right side of the text is placed closest to the anchor.

    Declaration

    Swift

    case right
  • top

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

    Declaration

    Swift

    case top
  • The bottom of the text is placed closest to the anchor.

    Declaration

    Swift

    case bottom
  • The top left corner of the text is placed closest to the anchor.

    Declaration

    Swift

    case topLeft
  • The top right corner of the text is placed closest to the anchor.

    Declaration

    Swift

    case topRight
  • The bottom left corner of the text is placed closest to the anchor.

    Declaration

    Swift

    case bottomLeft
  • The bottom right corner of the text is placed closest to the anchor.

    Declaration

    Swift

    case bottomRight