An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
September 18, 2021 03:32 pm GMT
Original Link: https://dev.to/toni777772/what-s-new-in-previewdevice-0-8-0-5dc0
What's new in PreviewDevice 0.8.0
PreviewDevice is a library with type-safe syntax sugar for preview device on SwiftUI.
If you don't know what is the library, I recomment read this article.
What's new in 0.8.0? Go-go-go
Added support new Apple devices:
iPhones:
- iPhone 13 mini (
Device.iphone13Mini
) - iPhone 13 (
Device.iphone13
) - iPhone 13 Pro (
Device.iphone13Pro
) - iPhone 13 Pro Max (
Device.iphone13ProMax
)
Apple Watch:
- Apple Watch Series 7 - 41mm (
Device.watchSeries7_41mm
) - Apple Watch Series 7 - 45mm (
Device.watchSeries7_45mm
)
iPads:
- iPad 9th generation (
Device.ipad_9Gen
) - iPad mini 6th generation (
Device.ipadMini6
)
Preview on device with orientation and color schemes.
Available iOS 15+ OSX 12+, macCatalyst 15+, tvOS 15+, watchOS 8.0+
struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() .previewDevice(device: .iphone13, orientation: .portrait, colorSchemes: [.light, .dark]) }}
Do you like the library? Click the star on GitHub.
Thanks for reading! See you soon.
Original Link: https://dev.to/toni777772/what-s-new-in-previewdevice-0-8-0-5dc0
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To