RepositorySwiftFRFrance
EK

Ekhoo/Device

Light weight tool for detecting the current device and screen size written in swift.

1.7kstars
206forks
3issues
1views

📱 Device: Phát hiện model và màn hình Apple chỉ trong một dòng code

Thư viện Swift nhẹ, hỗ trợ iOS, macOS, cài đặt qua CocoaPods, Carthage, SPM.

Device là một công cụ nhẹ (lightweight) bằng Swift giúp bạn dễ dàng xác định model thiết bị và kích thước màn hình hiện tại của các thiết bị Apple như iPhone, iPad, iPod Touch và cả trên macOS. Dự án hỗ trợ đa nền tảng và đã tích hợp sẵn trong các trình quản lý gói như CocoaPods, Carthage và Swift Package Manager.

✨ Điểm nổi bật

  • Phát hiện model thiết bị: Hỗ trợ liệt kê đầy đủ model iPhone, iPad, iPod Touch và cả Simulator.
  • Xác định kích thước màn hình: Cung cấp các trường hợp như màn hình 3.5 inch, 4 inch, 4.7 inch, 5.5 inch, 5.8 inch, 6.1 inch, 6.5 inch, 7.9 inch, 9.7 inch, 10.5 inch, 12.9 inch.
  • Hỗ trợ đa nền tảng: Chạy trên iOS từ phiên bản 8 trở lên và macOS từ 10.10 trở lên.
  • Tích hợp dễ dàng: Cài đặt nhanh qua CocoaPods, Carthage hoặc Swift Package Manager.
  • Swift 5.0+: Được viết hoàn toàn bằng Swift hiện đại, nhẹ và hiệu suất cao.

💡 Vì sao đáng chú ý

Device giúp bạn tránh phải tự viết logic kiểm tra model thiết bị hay kích thước màn hình — chỉ cần gọi Device.version() hoặc Device.size() và xử lý kết quả ngay trong switch-case. Đây là lựa chọn lý tưởng cho các dự án cần tùy chỉnh giao diện, hành vi theo từng loại thiết bị hoặc phân tích người dùng theo phân khúc phần cứng.


#Swift #iOS #macOS #DeviceDetection #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositorySwift
SwifterSwift/SwifterSwift

A handy collection of more than 500 native Swift extensions to boost your productivity.

15.3k
Nov 2, 2026
Repository
dkhamsing/open-source-ios-apps

:iphone: Collaborative List of Open-Source iOS Apps

53.4k
Nov 22, 2026
RepositorySwift
permissionlesstech/bitchat

bluetooth mesh chat, IRC vibes

37.2k
Nov 11, 2026
RepositorySwift
onevcat/Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.

24.4k
Nov 17, 2026
RepositorySwift
SwiftyJSON/SwiftyJSON

The better way to deal with JSON data in Swift.

22.9k
Aug 18, 2026
RepositorySwift
SnapKit/SnapKit

A Swift Autolayout DSL for iOS & OS X

20.3k
Jul 13, 2026
RepositorySwift
jonkykong/SideMenu

Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.

5.8k
Feb 9, 2023
RepositorySwift
gmarm/BetterSegmentedControl

An easy to use, customizable replacement for UISegmentedControl & UISwitch.

2.4k
Apr 11, 2023
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

181.3k
Nov 18, 2026