Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 782 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 782 Bytes

Apple Device Information

This repository contains information about Apple devices.

For each device type, the device type, orientation, userAgent, and viewport are listed, including safe area specifications.

{
  "deviceScaleFactor" : 3,
  "dimensions" : {
    "width" : 393,
    "height" : 852
  },
  "safeAreaInsets" : {
    "top" : 59,
    "bottom" : 34,
    "trailing" : 0,
    "leading" : 0
  },
  "isMobile" : true,
  "hasTouch" : true,
  "userAgent" : "Mozilla\/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Mobile\/15E148"
}

Automation

To collect the information for more devices, dependeing on simulators available on your machine, you can run the following command:

./collect_device_information.sh