PreviewDevice Versions Save

PreviewDevice - is a library with type-safe syntax sugar for preview device on SwiftUI. Preview for UIKit and Cocoa.

0.9.0

2 years ago

Preview for Cocoa views:

  • NSViewControllerPreview - preview for NSViewController.
  • NSViewPreview - preview for NSView.

Preview for UIKit views:

  • UIViewControllerPreview - preview for UIViewController.
  • UIViewPreview - preview for UIView.

0.8.0

2 years ago

Add new devices:

  • iPhone 13 mini, 13, 13Pro, 13Pro Max
  • Apple Watch 7 41 mm, 44 mm
  • iPad 9 Gen, iPad mini 6 gen

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])

0.7.0

2 years ago

Fix pod spec. Fix support platforms: tvOS, watchOS.

0.6.0

2 years ago

Fix support tvOS, watchOS platforms

0.5.0

2 years ago

Added:

  • View extensions.
    • previewDevice(device: Device, colorScheme: ColorScheme)
    • previewDevice(device: Device, colorSchemes: [ColorScheme])

0.3.0

2 years ago

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])

0.2.0

2 years ago

Added:

  • View extensions.
    • previewDevice(device: Device)
    • previewDevices(devices: [Device])