Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Version Xcode Version Platforms SPM 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.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