As mintioned in XLPagerTabStrip - Change Log:
6.0.0
Swift 3 support
So updating its pod to the latest version should let it supports Swift 3 by default.
You can add it as pod 'XLPagerTabStrip'
without specifying the version number, which causes to get latest version (it's the default behavior if you are not specifying the version number).
Change: pod 'XLPagerTabStrip', '~> 5.0'
to pod 'XLPagerTabStrip'
As mentioned, you should get version 6.0.0 (latest version).
Finally, your pod file should look like:
target 'MyNewProject' do
pod 'XLPagerTabStrip'
pod 'AFNetworking', '~> 3.0'
end
use_frameworks!
Recap: After making sure that the latest version of a library has been released to support -for example- Swift 3, install it without specifying the version number; Each time you'll update the podfile, it will automatically install the latest version of the pod.
For more information, you can check Podfile Syntax Reference.
Hope this helped.