Reputation: 829
I have an extension on String, it works fine on Xcode7 beta5. However, I upgraded to beta 6 yesterday. It seems Swift syntax has some changes. There are some errors while compiling my code.
==================================================
Yes. it shows which methods I should use and also finds some information on apple website. https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS81APIDiffs/modules/Swift.html
When I change the "distance" => "distanceTo". I got the error "Use of unresolved identifier 'distance to'". Does anyone know how to use "distanceTo", "advancedBy" exactly ??
Upvotes: 3
Views: 4418
Reputation: 535325
What's happened is that the global functions distance
and advance
have been replaced by instance methods distanceTo
and advancedBy
.
Upvotes: 7