Skip to content

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

License

Notifications You must be signed in to change notification settings

jaywcjlove/DeviceInfo

Repository files navigation

DeviceInfo

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

✦ My macOS/iOS application ✦

DayBar Iconed RightMenu Master 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


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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages