Repository navigation
iPhone and iPad apps on a Mac
Fix:
- In an iPhone or iPad app running on a Mac ("Designed for iPhone/iPad"),
Device.currentnow describes the Mac rather than the stand-in iPad the system reports (iPad8,6). It reads the model identifier from thehw.modelsysctl, e.g. "Mac16,5" → "MacBook Pro (16-inch, 2024)", withfamily == .mac, and falls back to an unknown "Mac" if that doesn't name a Mac.Device.operatingSystemNameis "macOS" there. The CPU brand string isn't readable from such an app, sochipisnil.
Documentation:
- The README and DocC explain why the data is bundled and never fetched.