Search code examples
iosswift-package-manager

How to change the version of library in Swift Package Manager?


I used some libraries in my swiftUI project with help of Swift Package Manager.

But I want to use some previous version of one library.

What I am tried:

enter image description here

If I change here it nothing reflects.

Can anyone suggest how to change the version of particular library?


Solution

  • You can use an exact version of the package that you want.

    Just select the drop down beside Up to next major and choose Exact.

    enter image description here

    Then insert the exact version that you wish to use.

    enter image description here