title: Adapting PinTintColor to Ray Wenderlich tutorial for mapkit
body: <p>I'm using a tutorial for building my first app. <a href="http://www.raywenderlich.com/90971/introduction-mapkit-swift-tutorial">http://www.raywenderlich.com/90971/introduction-mapkit-swift-tutorial</a></p>
  
  <p>Ive searched for pintintcolor but nothing comes up.</p>
  
  <p>Basically the tutorial uses this code to set the color</p>
  
  <pre><code>// pinColor for disciplines: Sculpture, Plaque, Mural, Monument, other
  func pinColor() -&gt; MKPinAnnotationColor{
      switch discipline {
      case "Sculpture", "Plaque":
          return .Red
      case "Mural", "Monument":
          return .Purple
      default:
          return .Green
  </code></pre>
  
  <p>The trouble is this is what apple has on the developers site</p>
  
  <p><a href="https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_11/Swift/MapKit.html">https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_11/Swift/MapKit.html</a></p>
  
  <p>Modified MKPinAnnotationView
  Declaration</p>
  
  <p>From:</p>
  
  <pre><code>class MKPinAnnotationView : MKAnnotationView {
      var pinColor: MKPinAnnotationColor
      var animatesDrop: Bool
  }
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>class MKPinAnnotationView : MKAnnotationView {
      class func redPinColor() -&gt; NSColor
      class func greenPinColor() -&gt; NSColor
      class func purplePinColor() -&gt; NSColor
      var pinTintColor: NSColor!
      var animatesDrop: Bool
      var pinColor: MKPinAnnotationColor
  }
  </code></pre>
  
  <p>The Ray Wenderlich tutorial is setup a fair bit different so I don't quite understand how to set it up the same way as it. I have tried a few different configurations but I can't get it to work.</p>
  
  <p>Any help appreciated</p>
  
  <p>Cheers</p>