PreviewDevice - is a library with type-safe syntax sugar for preview device on SwiftUI. Preview for UIKit and Cocoa.
Preview for Cocoa views:
NSViewControllerPreview
- preview for NSViewController
.NSViewPreview
- preview for NSView
.Preview for UIKit views:
UIViewControllerPreview
- preview for UIViewController
.UIViewPreview
- preview for UIView
.Add new devices:
Add new preview with orientation:
.previewDevice(device: .iphone12, orientations: [.portrait, .landscapeLeft, .landscapeRight])
Preview on device with orientation and color schemes
.previewDevice(device: .iphone12, orientation: .portrait, colorSchemes: [.light, .dark])
Fix pod spec. Fix support platforms: tvOS, watchOS.
Fix support tvOS, watchOS platforms
Added:
View
extensions.
previewDevice(device: Device, colorScheme: ColorScheme)
previewDevice(device: Device, colorSchemes: [ColorScheme])
Added:
View
extensions. Available iOS 15.0+ OSX 12.00+ macCatalyst 15.0+ tvOS 15.0+ watchOS 8.0+.
previewDevice(device: Device, orientation: InterfaceOrientation)
previewDevice(device: Device, orientations: [InterfaceOrientation])
Added:
View
extensions.
previewDevice(device: Device)
previewDevices(devices: [Device])