Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 5.47 KB

README.md

File metadata and controls

54 lines (44 loc) · 5.47 KB

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.