Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 2.38 KB

File metadata and controls

56 lines (43 loc) · 2.38 KB

Swift Xcode SPM Platforms DocC License CI Release

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.1"
    )
]

Associate the dependency with your target:

targets: [
    .target(
        name: "YourTarget",
        dependencies: [
            .product(
                name: "Device",
                package: "device"
            )
        ]
    )
]

Run: swift build