Device icon indicating copy to clipboard operation
Device copied to clipboard

Light weight tool for detecting the current device and screen size written in swift.

Results 43 Device issues
Sort by recently updated
recently updated
newest added

You have support for .iPadMini6 in the function, getVersion(code: String). But, you don't properly support in size(). It defaults to unknown. You need to add a case for the enum...

With this, we can get the same result using simulator. I assume that not many developers need to detect it's a simulator rather than real device.

enhancement

These two changes to the new iPad are wrong. The newly released iPad with m2 is the iPad Air, not the iPad Pro. 这两处针对新iPad的改动是错的。新发布的搭载m2的iPad是 iPad Air,不是 iPad Pro。 https://github.com/Ekhoo/Device/blob/8eef81c09e5736a4f35a11df9df835d51c5c37d5/Source/Version.swift#L90 https://github.com/Ekhoo/Device/blob/8eef81c09e5736a4f35a11df9df835d51c5c37d5/Source/iOS/Device.swift#L104