DingiTextAnchor

enum DingiTextAnchor {}

Part of the text placed closest to the anchor.

Values of this type are used in the DingiSymbolStyleLayer.textAnchor property.

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

    Declaration

    Objective-C

    DingiTextAnchorCenter

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorLeft

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorRight

    Swift

    case right = 2
  • The top of the text is placed closest to the anchor.

    Declaration

    Objective-C

    DingiTextAnchorTop

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorBottom

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorTopLeft

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorTopRight

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorBottomLeft

    Swift

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

    Declaration

    Objective-C

    DingiTextAnchorBottomRight

    Swift

    case bottomRight = 8