MGLAttributedExpression


@interface MGLAttributedExpression : NSObject

An MGLAttributedExpression object associates text formatting attibutes (such as font size or font names) to an NSExpression.

Example

let redColor = UIColor.red
let expression = NSExpression(forConstantValue: "Foo")
let attributes: [MGLAttributedExpressionKey: NSExpression] = [.fontNamesAttribute : NSExpression(forConstantValue: ["DIN Offc Pro Italic",
                                                                                                                    "Arial Unicode MS Regular"]),
                                                              .fontScaleAttribute: NSExpression(forConstantValue: 1.2),
                                                              .fontColorAttribute: NSExpression(forConstantValue: redColor)]
let attributedExpression = MGLAttributedExpression(expression, attributes:attributes)