Snap.swift icon indicating copy to clipboard operation
Snap.swift copied to clipboard

Landscape support

Open ralfebert opened this issue 7 years ago • 1 comments
trafficstars

It would be nice if there would be support for setting the view to landscape orientation. Maybe just treating them as a separate Device? Like:

extension Device {
  public var size: CGSize {
    switch self {
    // ...
    case .iPadAir: return CGSize(width: 768, height: 1024)
    case .iPadAir_Landscape: return CGSize(width: 1024, height: 768)
    // ...
  }
}

ralfebert avatar Mar 02 '18 12:03 ralfebert

I'm thinking about opening the Device size extension to allow passing custom size so we don't need to rely on the defined properties so it's more extensible

skyweb07 avatar Mar 06 '18 11:03 skyweb07