'Must Swift 3rd party packages match the swift versions in the app

I started to study SwiftUI 3 and Swift 5.6 for iOS development, but if I want to add a 3rd party package from Swift Package Manager or cocopods must that package use the exact same swift version as my xcode/iOS app is using, or can it be a lower Swift version?

For example I am using swift 5.6 in my project and this package seems to be using swift v5.2 https://github.com/meilisearch/meilisearch-swift



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source