The HERE Mobile SDK UI Kit for iOS provides ready-to-use UI components for the HERE Mobile SDK for iOS.
GuidanceManeuverView
and the ManeuverItemView
.GuidanceManeuverView
(you can now switch between no-data, updating and normal states).GuidanceManeuverView
is now orientation independent.GuidanceManeuverView, GuidanceManeuverView, and ManeuverItemView now support intrinsic content size and layout constrains.
GuidanceManeuverView
It now offers three states:
public enum State: Equatable {
case noData
case updating
case data(_ data: GuidanceManeuverData)
}
and its state can be set via a public property:
public var state: State { get set }
It doesn’t react to device orientation changes anymore. A new method has been added to control in which axis the content is laid out.
public var axis: NSLayoutConstraint.Axis { get set }
Finally, the method to highlight a maneuver was replaced. Instead of using
public func highlightManeuver(textColor: UIColor)
to highlight a maneuver, use the following property:
public var highlightManeuver: Bool { get set }
GuidanceNextManeuverView
The text alignment property was removed from its API:
public var textAlignment: NSTextAlignment { get set }
ManeuverItemView
The following methods were removed from its API:
public var visibleSections: Section { get set }
public var leadingInset: CGFloat { get set }
public var trailingInset: CGFloat { get set }
public func isSectionVisible(_ section: Section) -> Bool
public func setSectionVisible(_ section: Section, _ visible: Bool)
public func setManeuver(maneuvers: [NMAManeuver],
index: Int,
measurementFormatter: MeasurementFormatter)
The following properties were added to this component:
public var iconTintColor: UIColor? { get set }
public var instructionsTextColor: UIColor? { get set }
public var addressTextColor: UIColor? { get set }
public var distanceTextColor: UIColor? { get set }
ManeuverTableView
The following property was removed from its API:
public var visibleSections: ManeuverItemView.Section { get set }
GuidanceNextManeuverMonitorDelegate
The following method was renamed from
func guidanceNextManeuverMonitor(_ monitor: GuidanceNextManeuverMonitor,
didReveiveData maneuverIcon: UIImage?,
distance: Measurement<UnitLength>,
streetName: String?)
to:
func guidanceNextManeuverMonitor(_ monitor: GuidanceNextManeuverMonitor,
didReceiveIcon maneuverIcon: UIImage?,
distance: Measurement<UnitLength>,
streetName: String?)
GuidanceManeuverMonitor
The following property was removed from its API:
public var isVoiceEnabled: Bool { get set }