From 33125263c8eefd0bf107b5dfddbc5ead932fd659 Mon Sep 17 00:00:00 2001 From: Vincent Sam Date: Tue, 24 Jul 2018 14:10:58 -0400 Subject: [PATCH] [GH-1440] - Modify styles to contain an attributed text. --- MapboxNavigation/Style.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MapboxNavigation/Style.swift b/MapboxNavigation/Style.swift index c3ab4dfc25..d35809e6b9 100644 --- a/MapboxNavigation/Style.swift +++ b/MapboxNavigation/Style.swift @@ -411,6 +411,15 @@ open class WayNameView: UIView { } } + var attributedText: NSAttributedString? { + get { + return label.attributedText + } + set { + label.attributedText = newValue + } + } + @objc dynamic public var borderColor: UIColor? { get { guard let color = layer.borderColor else { return nil }