Skip to content

Commit

Permalink
doc: Update document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 6, 2024
1 parent 610dc18 commit c69a543
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ A simple library that provides device information for iOS/macOS apps
```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.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`
DeviceInfo.appIsSandboxed // e.g `true`
```

## License
Expand Down

0 comments on commit c69a543

Please sign in to comment.