mapbox / MapboxStatic.swift

Static map snapshots with overlays in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
https://www.mapbox.com/api-documentation/?language=Swift#static
Other
189 stars 31 forks source link

C-style for loop statement is deprecated in Swift 3. #10

Closed gabrielgarza closed 8 years ago

gabrielgarza commented 8 years ago

Modifying to a while loop to achieve the same goal.

gabrielgarza commented 8 years ago

Reference https://github.com/apple/swift-evolution/blob/master/proposals/0007-remove-c-style-for-loops.md

1ec5 commented 8 years ago

A better way to accomplish this is with a for loop over a range.

gabrielgarza commented 8 years ago

good point, closing this one and making new pull request