I created a new Swift Package and added this to the Package.swift:
platforms: [ .iOS(.v14) ],
In the source file, I added this code: