An open API service indexing awesome lists of open source software.

https://github.com/jaywcjlove/DeviceInfo

A simple library that provides device information for iOS/macOS apps
https://github.com/jaywcjlove/DeviceInfo

ios macos swift swift-package swift-package-manager swiftui

Last synced: 8 days ago
JSON representation

A simple library that provides device information for iOS/macOS apps

Awesome Lists containing this project

README

          


Using my app is also a way to support me:


Scap: Screenshot & Markup Edit
Screen Test
Deskmark
Keyzer
Vidwall Hub
VidCrop
Vidwall
Mousio Hint
Mousio
Musicer
Audioer
FileSentinel
FocusCursor
Videoer
KeyClicker
DayBar
Iconed
Menuist
Quick RSS
Quick RSS
Web Serve
Copybook Generator
DevTutor for SwiftUI
RegexMate
Time Passage
Iconize Folder
Textsound Saver
Create Custom Symbols
DevHub
Resume Revise
Palette Genius
Symbol Scribe


DeviceInfo
===

[![Buy me a coffee](https://img.shields.io/badge/Buy_Me_a_Coffee-ffdd00?logo=buy-me-a-coffee&logoColor=black)](https://jaywcjlove.github.io/#/sponsor)
[![Follow On X](https://img.shields.io/badge/Follow%20on%20X-333333?logo=x&logoColor=white)](https://x.com/jaywcjlove)

A simple library that provides device information for iOS/macOS apps

Welcome to download [DevTutor](https://apps.apple.com/app/devtutor/id6471227008), a cheat sheet app designed to help developers quickly build excellent applications using SwiftUI.


DevTutor for SwiftUI AppStore

```swift
import DeviceInfo

DeviceInfo.bundleName // e.g "DeviceInfoExample"
DeviceInfo.bundleIdentifier // e.g "com.wangchujiang.DeviceInfoExample"
DeviceInfo.bundleVersion // e.g "1"
DeviceInfo.systemVersionString // e.g "Version 15.0 (Build 24A335)"
DeviceInfo.isDarkMode // e.g `true`
DeviceInfo.version // e.g "1.3"
DeviceInfo.systemVersion.majorVersion // e.g "1"
DeviceInfo.systemVersion.minorVersion // e.g "3"
DeviceInfo.systemVersion.patchVersion // e.g "0"
DeviceInfo.systemMajorVersion // e.g "1"
DeviceInfo.systemMinorVersion // e.g "3"
DeviceInfo.systemPatchVersion // e.g "0"
DeviceInfo.appIcon // -> UIImage | NSImage
DeviceInfo.copyright // "Copyright © 2024 Chujiang Wang. All rights reserved."

DeviceInfo.appIsSandboxed // e.g `true`
```

## License

Licensed under the MIT License.