These packages are available as a package collection, usable in Xcode or SwiftPM.
Swift library to easily check the current device and some more info about it.
1 package.