-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge testing-improvements into master
- Loading branch information
Showing
9 changed files
with
127 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2018, Roman Tysiachnik, Andrii Doroshko. | ||
// Licensed under the terms of the MIT License. See LICENSE.md file in project root for terms. | ||
|
||
import Foundation | ||
|
||
extension Device { | ||
@available(iOS 10.0, *) | ||
public enum iPadPro12_2nd_generation { | ||
public enum portrait { | ||
public static let fullScreen = Presentation( | ||
name: "iPad Pro12 Portrait FullScreen", | ||
size: CGSize.iPadPro12, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.iPad.portrait.fullScreen, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
public static let twoThirds = Presentation( | ||
name: "iPad Pro12 Portrait Two Third", | ||
size: CGSize.iPadPro12.splitViewTwoThirds, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.iPad.portrait.splitTwoThirds, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
public static let oneThird = Presentation( | ||
name: "iPad Pro12 Portrait SplitView One Third", | ||
size: CGSize.iPadPro12.splitViewOneThird, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.iPad.portrait.splitOneThird, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
} | ||
public enum landscape { | ||
public static let fullScreen = Presentation( | ||
name: "iPad Pro12 Landscape FullScreen", | ||
size: CGSize.iPadPro12.rotated, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.iPad.landscape.fullScreen, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
public static let half = Presentation( | ||
name: "iPad Pro12 Landscape SplitView Half", | ||
size: CGSize.iPadPro12.rotated.splitViewHalf, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.Display.InterfaceIdiom.pad, | ||
UITraitCollection.Display.SizeClass.Vertical.regular, | ||
UITraitCollection.Display.SizeClass.Horizontal.regular, | ||
UITraitCollection.Display.Scale.x2, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
public static let twoThird = Presentation( | ||
name: "iPad Pro12 Landscape SplitView Two-Thirds", | ||
size: CGSize.iPadPro12.rotated.splitViewTwoThirds, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.iPad.landscape.splitTwoThirds, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
public static let oneThird = Presentation( | ||
name: "iPad Pro12 Landscape SplitView One Third", | ||
size: CGSize.iPadPro12.rotated.splitViewOneThird, | ||
traitCollection: UITraitCollection( | ||
traitsFrom: [UITraitCollection.iPad.landscape.splitOneThird, | ||
UITraitCollection.Compability.ForceTouch.available, | ||
UITraitCollection.Compability.DisplayGamut.P3])) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2018, Roman Tysiachnik, Andrii Doroshko. | ||
// Licensed under the terms of the MIT License. See LICENSE.md file in project root for terms. | ||
|
||
import Foundation | ||
|
||
extension Device { | ||
public enum iPhone4S { | ||
public static let portrait = Presentation( | ||
name: "iPhone 4S Portrait", | ||
size: CGSize.iPhone4S, | ||
traitCollection: UITraitCollection.iPhone.portrait) | ||
public static let landscape = Presentation( | ||
name: "iPhone 4S Landscape", | ||
size: CGSize.iPhone4S.rotated, | ||
traitCollection: UITraitCollection.iPhone.landscape) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters