# sebyddd/SDVersion

:iphone: Lightweight Cocoa library for detecting the running device's model and screen size.

Repository: https://github.com/sebyddd/SDVersion
Canonical: https://ross.abutalabs.com/products/sdversion
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2025-12-28T03:38:50+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 59, release rhythm 31, longevity 100
- inputs: {"age_days": 4376, "days_push": 248, "days_rel": 248, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1306, forks 210 (observed 2026-08-28T04:04:18.961233+00:00)

## What it is
A lightweight Objective-C Cocoa library for detecting the running device's model, screen size, and OS version across iOS, iPadOS, watchOS, tvOS, and macOS. It provides simple enum-based checks for specific device models from iPhone 4 through iPhone 16 and Apple Silicon Macs.

## Use cases
- detect which iPhone model my app is running on
- check device screen size in iOS app
- determine if the device is an iPad Pro with M4
- get the human-readable device name like iPhone 16 Pro Max
- check if the screen is in zoom mode
- compare the running iOS version against a minimum
- detect Apple Watch series or Apple TV model
- identify Apple Silicon Mac model in a macOS app

## When to choose
- you need fine-grained device model or screen size detection on Apple platforms
- you want a tiny dependency with both Objective-C and Swift support
- you need coverage for the latest devices including iPhone 16 and M4 Macs

## When to avoid
- you only need generic device capability checks available via UIKit/UIDevice
- you target non-Apple platforms
- you need device detection for analytics rather than behavior branching

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, sdk
- domain: apple-ecosystem, mobile-development, developer-tools, cross-platform
- platform: cpp
- tags: device-detection, screen-size, objective-c, cocoapods, swift-package-manager, watchos, tvos, device-model, ios, macos, swift

## Member repositories
- sebyddd/SDVersion (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:18.961233+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:50:58.965226+00:00, confidence not recorded.
  - readme: https://github.com/sebyddd/SDVersion (fetched 2026-08-28T04:04:18.961233+00:00, sha d97225916d32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
