# NSValue(MGLSymbolStyleLayerAdditions)

    @interface NSValue (MGLSymbolStyleLayerAdditions)

Methods for wrapping an enumeration value for a style layer attribute in an `MGLSymbolStyleLayer` object and unwrapping its raw value.

### Working with Symbol Style Layer Attribute Values

- `+valueWithMGLIconAnchor:`

  Creates a new value object containing the given `MGLIconAnchor` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLIconAnchor:(MGLIconAnchor)iconAnchor;

  Swift

      convenience init(mglIconAnchor iconAnchor: MGLIconAnchor)

  #### Parameters

  `iconAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLIconAnchorValue`

  The `MGLIconAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLIconAnchor MGLIconAnchorValue;

  Swift

      var mglIconAnchorValue: MGLIconAnchor { get }

  View Source on GitHub
- `+valueWithMGLIconPitchAlignment:`

  Creates a new value object containing the given `MGLIconPitchAlignment` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLIconPitchAlignment:
          (MGLIconPitchAlignment)iconPitchAlignment;

  Swift

      convenience init(mglIconPitchAlignment iconPitchAlignment: MGLIconPitchAlignment)

  #### Parameters

  `iconPitchAlignment` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLIconPitchAlignmentValue`

  The `MGLIconPitchAlignment` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLIconPitchAlignment MGLIconPitchAlignmentValue;

  Swift

      var mglIconPitchAlignmentValue: MGLIconPitchAlignment { get }

  View Source on GitHub
- `+valueWithMGLIconRotationAlignment:`

  Creates a new value object containing the given `MGLIconRotationAlignment` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLIconRotationAlignment:
          (MGLIconRotationAlignment)iconRotationAlignment;

  Swift

      convenience init(mglIconRotationAlignment iconRotationAlignment: MGLIconRotationAlignment)

  #### Parameters

  `iconRotationAlignment` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLIconRotationAlignmentValue`

  The `MGLIconRotationAlignment` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLIconRotationAlignment MGLIconRotationAlignmentValue;

  Swift

      var mglIconRotationAlignmentValue: MGLIconRotationAlignment { get }

  View Source on GitHub
- `+valueWithMGLIconTextFit:`

  Creates a new value object containing the given `MGLIconTextFit` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLIconTextFit:(MGLIconTextFit)iconTextFit;

  Swift

      convenience init(mglIconTextFit iconTextFit: MGLIconTextFit)

  #### Parameters

  `iconTextFit` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLIconTextFitValue`

  The `MGLIconTextFit` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLIconTextFit MGLIconTextFitValue;

  Swift

      var mglIconTextFitValue: MGLIconTextFit { get }

  View Source on GitHub
- `+valueWithMGLSymbolPlacement:`

  Creates a new value object containing the given `MGLSymbolPlacement` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLSymbolPlacement:
          (MGLSymbolPlacement)symbolPlacement;

  Swift

      convenience init(mglSymbolPlacement symbolPlacement: MGLSymbolPlacement)

  #### Parameters

  `symbolPlacement` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLSymbolPlacementValue`

  The `MGLSymbolPlacement` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLSymbolPlacement MGLSymbolPlacementValue;

  Swift

      var mglSymbolPlacementValue: MGLSymbolPlacement { get }

  View Source on GitHub
- `+valueWithMGLSymbolZOrder:`

  Creates a new value object containing the given `MGLSymbolZOrder` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLSymbolZOrder:(MGLSymbolZOrder)symbolZOrder;

  Swift

      convenience init(mglSymbolZOrder symbolZOrder: MGLSymbolZOrder)

  #### Parameters

  `symbolZOrder` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLSymbolZOrderValue`

  The `MGLSymbolZOrder` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLSymbolZOrder MGLSymbolZOrderValue;

  Swift

      var mglSymbolZOrderValue: MGLSymbolZOrder { get }

  View Source on GitHub
- `+valueWithMGLTextAnchor:`

  Creates a new value object containing the given `MGLTextAnchor` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLTextAnchor:(MGLTextAnchor)textAnchor;

  Swift

      convenience init(mglTextAnchor textAnchor: MGLTextAnchor)

  #### Parameters

  `textAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLTextAnchorValue`

  The `MGLTextAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLTextAnchor MGLTextAnchorValue;

  Swift

      var mglTextAnchorValue: MGLTextAnchor { get }

  View Source on GitHub
- `+valueWithMGLTextJustification:`

  Creates a new value object containing the given `MGLTextJustification` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLTextJustification:
          (MGLTextJustification)textJustification;

  Swift

      convenience init(mglTextJustification textJustification: MGLTextJustification)

  #### Parameters

  `textJustification` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLTextJustificationValue`

  The `MGLTextJustification` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLTextJustification MGLTextJustificationValue;

  Swift

      var mglTextJustificationValue: MGLTextJustification { get }

  View Source on GitHub
- `+valueWithMGLTextPitchAlignment:`

  Creates a new value object containing the given `MGLTextPitchAlignment` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLTextPitchAlignment:
          (MGLTextPitchAlignment)textPitchAlignment;

  Swift

      convenience init(mglTextPitchAlignment textPitchAlignment: MGLTextPitchAlignment)

  #### Parameters

  `textPitchAlignment` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLTextPitchAlignmentValue`

  The `MGLTextPitchAlignment` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLTextPitchAlignment MGLTextPitchAlignmentValue;

  Swift

      var mglTextPitchAlignmentValue: MGLTextPitchAlignment { get }

  View Source on GitHub
- `+valueWithMGLTextRotationAlignment:`

  Creates a new value object containing the given `MGLTextRotationAlignment` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLTextRotationAlignment:
          (MGLTextRotationAlignment)textRotationAlignment;

  Swift

      convenience init(mglTextRotationAlignment textRotationAlignment: MGLTextRotationAlignment)

  #### Parameters

  `textRotationAlignment` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLTextRotationAlignmentValue`

  The `MGLTextRotationAlignment` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLTextRotationAlignment MGLTextRotationAlignmentValue;

  Swift

      var mglTextRotationAlignmentValue: MGLTextRotationAlignment { get }

  View Source on GitHub
- `+valueWithMGLTextTransform:`

  Creates a new value object containing the given `MGLTextTransform` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLTextTransform:
          (MGLTextTransform)textTransform;

  Swift

      convenience init(mglTextTransform textTransform: MGLTextTransform)

  #### Parameters

  `textTransform` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLTextTransformValue`

  The `MGLTextTransform` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLTextTransform MGLTextTransformValue;

  Swift

      var mglTextTransformValue: MGLTextTransform { get }

  View Source on GitHub
- `+valueWithMGLIconTranslationAnchor:`

  Creates a new value object containing the given `MGLIconTranslationAnchor` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLIconTranslationAnchor:
          (MGLIconTranslationAnchor)iconTranslationAnchor;

  Swift

      convenience init(mglIconTranslationAnchor iconTranslationAnchor: MGLIconTranslationAnchor)

  #### Parameters

  `iconTranslationAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLIconTranslationAnchorValue`

  The `MGLIconTranslationAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLIconTranslationAnchor MGLIconTranslationAnchorValue;

  Swift

      var mglIconTranslationAnchorValue: MGLIconTranslationAnchor { get }

  View Source on GitHub
- `+valueWithMGLTextTranslationAnchor:`

  Creates a new value object containing the given `MGLTextTranslationAnchor` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLTextTranslationAnchor:
          (MGLTextTranslationAnchor)textTranslationAnchor;

  Swift

      convenience init(mglTextTranslationAnchor textTranslationAnchor: MGLTextTranslationAnchor)

  #### Parameters

  `textTranslationAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLTextTranslationAnchorValue`

  The `MGLTextTranslationAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLTextTranslationAnchor MGLTextTranslationAnchorValue;

  Swift

      var mglTextTranslationAnchorValue: MGLTextTranslationAnchor { get }

  View Source on GitHub