ooper-shlab / Breadcrumb4.1-Swift

A translation of Apple's sample code Breadcrumb into Swift
Other
7 stars 3 forks source link

Cannot call value of non-function type 'UIColor' #1

Open tomeriksen opened 7 years ago

tomeriksen commented 7 years ago

Just compiling it in Xcode 8 I get this weird error:

Breadcrumb4.1-Swift/Breadcrumb/BreadcrumbViewController.swift:287:76: Cannot call value of non-function type 'UIColor'

The error is located in func mapView

        #if kDebugShowArea
            if self.drawingAreaRenderer?.polygon !== overlay {
                drawingAreaRenderer = MKPolygonRenderer(polygon: overlay as! MKPolygon)
                self.drawingAreaRenderer!.fillColor = UIColor.blueColor().colorWithAlphaComponent(0.25)
            }
            renderer = self.drawingAreaRenderer
        #endif

If I remove the line it works though!

ooper-shlab commented 7 years ago

Thanks for informing me. I have set the Flag -DkDebugShowArea only in Debug settings, and tested only in Release settings. I hope that part compiles fine with the latest revision (both in Debug and Release settings).