Skip to content

Commit

Permalink
Simplified enumeration expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Apr 24, 2018
1 parent d59b750 commit a5328a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Examples/Swift/CustomViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ class CustomViewController: UIViewController, MGLMapViewDelegate, AVSpeechSynthe
// Style the line
line.lineColor = NSExpression(forConstantValue: UIColor(red:0.00, green:0.45, blue:0.74, alpha:0.9))
line.lineWidth = NSExpression(forConstantValue: 5)
line.lineCap = NSExpression(forConstantValue: NSValue(mglLineCap: .round))
line.lineJoin = NSExpression(forConstantValue: NSValue(mglLineJoin: .round))
line.lineCap = NSExpression(forConstantValue: "round")
line.lineJoin = NSExpression(forConstantValue: "round")

// Add source and layer
style.addSource(lineSource)
Expand Down
4 changes: 2 additions & 2 deletions MapboxNavigation/NavigationMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,8 @@ open class NavigationMapView: MGLMapView, UIGestureRecognizerDelegate {
symbol.textHaloWidth = NSExpression(forConstantValue: 1)
symbol.textHaloColor = NSExpression(forConstantValue: UIColor.white)
symbol.textOpacity = NSExpression(forConstantValue: 0.75)
symbol.textAnchor = NSExpression(forConstantValue: NSValue(mglTextAnchor: .bottomLeft))
symbol.textJustification = NSExpression(forConstantValue: NSValue(mglTextJustification: .left))
symbol.textAnchor = NSExpression(forConstantValue: "bottom-left")
symbol.textJustification = NSExpression(forConstantValue: "left")

let circle = MGLCircleStyleLayer(identifier: instructionCircle, source: sourceShape)
circle.circleRadius = NSExpression(forConstantValue: 5)
Expand Down

0 comments on commit a5328a5

Please sign in to comment.