Skip to content

Add support for iPhone Duo #518

Closed

Description

@gabors

iPhone19,4

Activity

  1. jinweizhao commented on Oct 23, 2026

    @jinweizhao

    iPhone19,4

  2. gabors commented on Oct 31, 2026

    @gabors
    Author

    For anyone waiting on this: #507 has been open since September and isn't in a release yet, so DeviceKit 5.9.0 doesn't recognize iPhone19,4. In the meantime, DeviceLookup, a DeviceKit replacement I maintain, has it today:

    Device(modelIdentifier: "iPhone19,4").modelName  // "iPhone Duo"
    Device(modelIdentifier: "iPhone19,4").chip       // "A20 Pro"
    Device(modelIdentifier: "iPhone19,4").diagonal   // 7.6 (the inner display)

    Device details are data rather than enum cases, taken from Xcode's device list and Apple's Mac pages, and a weekly CI job opens a PR when new identifiers appear. So new hardware doesn't wait on a code change, and an identifier that isn't in the data yet still resolves to the right family. Device is also Sendable and never touches UIDevice, so it works from any actor under Swift 6.

    There's a migration guide if you want to switch. Thanks to the DeviceKit maintainers. DeviceLookup's chip and screen-size data started from DeviceKit's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions