Structure
Client.Device.Resolution
struct Resolution: Equatable, Codable
A struct defining some characteristics of a device's screen.
Relationships
Member Of
Client.DeviceA
structdefining all possible information about a (mock) device.
Conforms To
CodableEquatable
Initializers
init(width:height:scale:dpi:)
public init(width: Int, height: Int, scale: Int, dpi: Int? = nil)
Init.
Parameters
| Name | Type | Description |
|---|---|---|
| width | Int |
A valid |
| height | Int |
A valid |
| scale | Int |
A valid |
| dpi | Int? |
An optional |