devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Return String representation of Device.current (may be its raw value)

cocodyrockstar opened this issue · comments

here is a suggestion: insert a string representation of the enum Device.

public enum Device: String {
...
    case iPodTouch5 = "iPod Touch 5th gen"
...
}

then we could use it like this:

let deviceString = Decive.current.rawValue
// "iPod Touch 5th gen"

This already exists, please use:

Device.current.description

Thanks!