-
-
Save laevandus/51015cae703163755676767193295ffa to your computer and use it in GitHub Desktop.
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
extension PreviewTrait where T == Preview.ViewTraits { | |
/// Preview with `.device` layout (the default). | |
public static var defaultLayout: PreviewTrait<Preview.ViewTraits> { get } | |
public static var sizeThatFitsLayout: PreviewTrait<Preview.ViewTraits> { get } | |
public static func fixedLayout(width: CGFloat, height: CGFloat) -> PreviewTrait<T> | |
public static var portrait: PreviewTrait<Preview.ViewTraits> { get } | |
public static var landscapeLeft: PreviewTrait<Preview.ViewTraits> { get } | |
public static var landscapeRight: PreviewTrait<Preview.ViewTraits> { get } | |
public static var portraitUpsideDown: PreviewTrait<Preview.ViewTraits> { get } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment