🛠️

iOSデバイスの画面サイズ一覧

2023/11/24に公開

iPhone

Device Inch Pixels Points Scale Factor
iPhone 8 4.7 750 × 1334 375 × 667 2.0
iPhone 8 Plus 5.5 1242 × 2208 414 × 736 3.0
iPhone 14 5.8 1170 × 2532 390 × 763 3.0
iPhone 14 Pro
iPhone 15
iPhone 15 Pro
6.1 1179 × 2556 393 × 759 3.0
iPhone 14 Plus 6.5 1284 × 2778 428 × 845 3.0
iPhone 14 Pro Max
iPhone 15 Plus
iPhone 15 Pro Max
6.7 1290 × 2796 430 × 839 3.0

iPad

Device Inch Pixels Points Scale Factor
iPad mini (6th) 8.3 1488 × 2266 744 × 1113 2.0
iPad (10th)
iPad Air (5th)
10.9 1640 × 2360 820 × 1160 2.0
iPad Pro 11-inch (4th) 11 1668 × 2388 834 × 1174 2.0
iPad Pro 12.9-inch (2nd)
iPad Pro 12.9-inch (6th)
12.9 2048 × 2732 1024 × 1346 2.0

確認に使ったコード

struct ContentView: View {
    @State var screenSize: CGSize = .zero
    @Environment(\.displayScale) var displayScale: CGFloat

    var body: some View {
        GeometryReader { proxy in
            VStack {
                Text(verbatim: "Pixels")
                    .fontWeight(.bold)
                Text("\(Int(screenSize.width)) × \(Int(screenSize.height))")
                Text(verbatim: "Points")
                    .fontWeight(.bold)
                Text("\(Int(proxy.size.width)) × \(Int(proxy.size.height))")
                Text(verbatim: "Scale factor")
                    .fontWeight(.bold)
                Text("\(displayScale)")
            }
            .padding()
        }
        .statusBar(hidden: true)
        .onAppear {
            screenSize = UIScreen.main.nativeBounds.size
        }
    }
}

Discussion