I see a lot of projects have this file in their root directory:
.swift-version
These are some examples:
https://github.com/hackiftekhar/IQKeyboardManager
https://github.com/Alamofire/Alamofire
https://github.com/TheMindStudios/SwiftyPlayer
My question is what is the purpose of this file and what is it used for?
This seems quite similar to the practice of a .ruby-version file which instructs a version manager like rvm to pick up a particular version of ruby. But what it's doing in case of swift, I am not really sure. Here are two related scenarios that I have come across:
Cocoapods issue
This cocoapod pull request can also provide some clue
This is not an exact answer. But I hope it provides some information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With