# GoogleMaps Framework Reference

# GMSPinImageGlyph

    @interface GMSPinImageGlyph : NSObject

Provides a custom pin image glyph for an advanced marker.
- `


  ### [-init](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;

- `


  ### [text](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(py)text)


  `

  #### Declaration

  Swift

      var text: String? { get }

  Objective-C

      @property(nonatomic, nullable, readonly) NSString *text

- `


  ### [textColor](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(py)textColor)


  `

  #### Declaration

  Swift

      var textColor: UIColor? { get }

  Objective-C

      @property(nonatomic, nullable, readonly) UIColor *textColor

- `


  ### [image](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(py)image)


  `

  #### Declaration

  Swift

      var image: UIImage? { get }

  Objective-C

      @property(nonatomic, nullable, readonly) UIImage *image

- `


  ### [glyphColor](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(py)glyphColor)


  `

  #### Declaration

  Swift

      var glyphColor: UIColor? { get }

  Objective-C

      @property(nonatomic, nullable, readonly) UIColor *glyphColor

- `


  ### [-initWithText:textColor:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(im)initWithText:textColor:)


  ` Returns a glyph model with the given text.

  #### Declaration

  Swift

      init(text: String, textColor: UIColor)

  Objective-C

      - (nonnull GMSPinImageGlyph *)initWithText:(nonnull NSString *)text
                                       textColor:(nonnull UIColor *)textColor;

  #### Parameters

  |---|---|
  | ` text ` | A `NSString` object to use as the glyph. |
  | ` textColor ` | A `UIColor` object to use to render the text. |

  #### Return Value

  An initialized glyph model.
- `


  ### [-initWithImage:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(im)initWithImage:)


  ` Returns a glyph model with the given text.

  #### Declaration

  Swift

      init(image: UIImage)

  Objective-C

      - (nonnull GMSPinImageGlyph *)initWithImage:(nonnull UIImage *)image;

  #### Parameters

  |---|---|
  | ` image ` | A `UIImage` object to use as the glyph. |

  #### Return Value

  An initialized glyph model.
- `


  ### [-initWithGlyphColor:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageGlyph#/c:objc(cs)GMSPinImageGlyph(im)initWithGlyphColor:)


  ` Returns a glyph model with the given glyph color.

  #### Declaration

  Swift

      init(glyphColor: UIColor)

  Objective-C

      - (nonnull GMSPinImageGlyph *)initWithGlyphColor:(nonnull UIColor *)glyphColor;

  #### Parameters

  |---|---|
  | ` glyphColor ` | A `UIColor` object to use to render the glyph. |

  #### Return Value

  An initialized glyph model.