Ekhoo/Device
Light weight tool for detecting the current device and screen size written in swift. observed · 2026-08-28
Health v2 · maintenance only
61/100
- Activity 78
- Release rhythm 18
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 348
- age_days: 3960
- days_rel: 334
- days_push: 133
- n_releases_24m: 2
Adoption not part of the score
1729 stars · 204 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A lightweight Swift library for detecting the current Apple device model and screen size on iOS and macOS. It provides simple enums for device versions and screen sizes, distributed via CocoaPods, Carthage, and Swift Package Manager.
Use cases
- detect which iPhone or iPad model the app is running on
- get the current device screen size in Swift
- adapt UI layout based on device type
- check if the app is running on iPhone, iPad, or Mac
- log the device version for analytics or debugging
When to choose
- you need a small, dependency-free way to identify Apple hardware models in Swift
- you want simple switch-based APIs for device and screen size detection
- you support both iOS and macOS in one codebase
When to avoid
- you need modern device coverage beyond the models listed in the README
- you only need screen size and prefer using built-in UIKit/AppKit APIs
- you target platforms outside Apple's ecosystem
Facets
library · maturity maintenance
developer-tools mobile-development developer-tools device-detection screen-size swift cocoapods carthage spm ios macos
1 source
- readme: https://github.com/Ekhoo/Device · fetched 2026-08-28 · 79fe6207f0a9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Ekhoo/Device | main | 61 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem