| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
Device is a lightweight Swift package for retrieving host device information, such as platform type, operating system version, screen size, and orientation.
API documentation and usage examples are available in DocC.
Use Xcode's built-in support for SPM.
or...
In your Package.swift, add Device as a dependency:
dependencies: [
.package(
url: "https://github.com/thatfactory/device",
from: "0.2.4"
)
]Associate the dependency with your target:
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(
name: "Device",
package: "device"
)
]
)
]Run: swift build
| Back | FazBrowse Home | New Git URL |