How to determine the current iPhone/device model?
I made this “pure Swift” extension on UIDevice. If you are looking for a more elegant solution you can use my ยต-framework DeviceKit published on GitHub (also available via CocoaPods, Carthage and Swift Package Manager). Here’s the code: import UIKit public extension UIDevice { static let modelName: String = { var systemInfo = utsname() uname(&systemInfo) … Read more