Skip to content

Repository files navigation

SwiftXcodePlatformsSPMDocCLicenseCIRelease

Device 📱

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.

Integration

Xcode

Use Xcode's built-in support for SPM.

or...

Package.swift

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

About

Retrieves information about the host device. 📱

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages