ivnsch / SwiftCharts

Easy to use and highly customizable charts library for iOS
Apache License 2.0
2.53k stars 410 forks source link

Swift 4.2 compile error #367

Closed DavidLari closed 5 years ago

DavidLari commented 6 years ago

Using Xcode 10 GM Seed, Swift 4.2, file String.swift has a compile error on line 25:

return String(self[start..<end])

Cannot invoke initializer for type 'Range<_>' with an argument list of type '(Range)'

fuzunspm commented 6 years ago

replace it with

return String(self[start..<end])

#357

StephenNorris commented 6 years ago

I just built my app against the latest pod with Xcode 10. After I did the Swift 4.2 migration on my project it compiled okay (although there are a lot of warnings about replacing “open let” with public).

ivnsch commented 6 years ago

Yes, the fix is in 0.6.2. Will go through the warnings this week. PRs also welcome.