NSValue(MGLLineStyleLayerAdditions)
@interface NSValue (MGLLineStyleLayerAdditions)
Methods for wrapping an enumeration value for a style layer attribute in an
MGLLineStyleLayer object and unwrapping its raw value.
-
Creates a new value object containing the given
MGLLineCapenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLLineCap:(MGLLineCap)lineCap;Swift
convenience init(mglLineCap lineCap: MGLLineCap)Parameters
lineCapThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLLineCapenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLLineCap MGLLineCapValue;Swift
var mglLineCapValue: MGLLineCap { get } -
Creates a new value object containing the given
MGLLineJoinenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLLineJoin:(MGLLineJoin)lineJoin;Swift
convenience init(mglLineJoin lineJoin: MGLLineJoin)Parameters
lineJoinThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLLineJoinenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLLineJoin MGLLineJoinValue;Swift
var mglLineJoinValue: MGLLineJoin { get } -
Creates a new value object containing the given
MGLLineTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLLineTranslationAnchor: (MGLLineTranslationAnchor)lineTranslationAnchor;Swift
convenience init(mglLineTranslationAnchor lineTranslationAnchor: MGLLineTranslationAnchor)Parameters
lineTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLLineTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLLineTranslationAnchor MGLLineTranslationAnchorValue;Swift
var mglLineTranslationAnchorValue: MGLLineTranslationAnchor { get }
Install in Dash
NSValue(MGLLineStyleLayerAdditions) Category Reference