Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] add screen logical resolution info #416

Open
andy380743909 opened this issue Sep 3, 2024 · 0 comments
Open

[enhancement] add screen logical resolution info #416

andy380743909 opened this issue Sep 3, 2024 · 0 comments

Comments

@andy380743909
Copy link

struct DeviceScreenResolutions {
    
    static let _data: [String: [String]] = [
        
        // https://iosref.com/res
        
        "393 × 852": ["iPhone 15 Pro",
                      "iPhone 15",
                      "iPhone 14 Pro"],
        
        "430 × 932": ["iPhone 15 Pro Max",
                      "iPhone 15 Plus",
                      "iPhone 14 Pro Max"],
        
        "428 × 926": ["iPhone 14 Plus",
                      "iPhone 13 Pro Max",
                      "iPhone 12 Pro Max"],
        
        "390 × 844": ["iPhone 14",
                      "iPhone 13 Pro",
                      "iPhone 13",
                      "iPhone 12 Pro",
                      "iPhone 12"],
        
        //        "375 × 812": ["iPhone 13 mini",
        //                      "and 12 mini"],
        
        //        "414 × 896": ["iPhone 11 Pro Max",
        //                      "and XS Max"],
        
        //        "375 × 812": ["iPhone 11 Pro",
        //                      "and XS",
        //                      "X"],
        
        //        "414 × 896": ["iPhone 11",
        //                      "and XR"],
        
        "375 × 812": ["iPhone 13 mini",
                      "iPhone 12 mini",
                      "iPhone 11 Pro",
                      "iPhone XS",
                      "iPhone X"],
        
        "414 × 896": ["iPhone 11 Pro Max",
                      "iPhone XS Max",
                      "iPhone 11",
                      "iPhone XR"],
        
        "414 × 736": ["iPhone 8 Plus",
                      "iPhone 7 Plus",
                      "iPhone 6s Plus",
                      "iPhone 6 Plus"],
        
        "375 × 667": ["iPhone SE (3rd generation)",
                      "iPhone SE (2nd generation)",
                      "iPhone 8",
                      "iPhone 7",
                      "iPhone 6s",
                      "iPhone 6"],
        
        "320 × 568": ["iPhone SE",
                      "iPhone 5s",
                      "iPhone 5c",
                      "iPhone 5"],
        
        "320 × 480": ["iPhone 4s",
                      "iPhone 4",
                      "iPhone 3GS",
                      "iPhone 3G",
                      "iPhone"],
        
        "1024 × 1366": ["iPad Pro (12.9-inch) (6th generation)",
                        "iPad Pro (12.9-inch) (5th generation)",
                        "iPad Pro (12.9-inch) (4th generation)",
                        "iPad Pro (12.9-inch) (3rd generation)",
                        "iPad Pro (12.9-inch) (2nd generation)",
                        "iPad Pro (12.9-inch)"],
        
        "834 × 1194": ["iPad Pro (11-inch) (4th generation)",
                       "iPad Pro (11-inch) (3rd generation)",
                       "iPad Pro (11-inch) (2nd generation)",
                       "iPad Pro (11-inch)",],
        
        "810 × 1080": ["iPad (10th generation)",
                       "iPad (9th generation)",
                       "iPad (8th generation)",
                       "iPad (7th generation)"],
        
        "820 × 1180": ["iPad Air (5th generation)",
                       "iPad Air (4th generation)"],
        
        "744 × 1133": ["iPad Mini (6th generation)"],
        
        "834 × 1112": ["iPad Air (3rd generation)",
                       "iPad Pro (10.5-inch)"],
        
        "768 × 1024": ["iPad (6th generation)",
                       "iPad (5th generation)",
                       "iPad Pro (9.7-inch)",
                       "iPad Air 2",
                       "iPad Air",
                       "iPad (4th generation)",
                       "iPad (3rd generation)",
                       "iPad Mini (5th generation)",
                       "iPad Mini 4",
                       "iPad Mini 3",
                       "iPad Mini 2",
                       "iPad Mini",
                       "iPad 2",
                       "iPad"
                      ],
        
        // https://useyourloaf.com/blog/ipad-2024-screen-sizes
        
        "820 x 1180": ["iPad Air (11-inch) (M2)"],
        
        "1024 x 1366": ["iPad Air (13-inch) (M2)"],
        
        "834 x 1210": ["iPad Pro (11-inch) (M4)"],
        
        "1032 x 1376": ["iPad Pro (13-inch) (M4)"],
        
    ]
    
}

If someone needs this info, you can take it, or integrate it into this nice library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant