Year twenty twenty-one. Almost a month has passed since the WWDC. As usual, Apple presented many amazing features/updates 😍. As expected updated SwiftUI framework. But did not add placeholder for List view 😭. It’s not big deal, but it was one of my expectations from conference. …

PreviewDevice — a library with elegant syntax for preview device in SwiftUI.

The first question that comes to mind is,

Why do I need to use the third-party library for SwiftUI preview?

For an answer, this question will compare Apple API for preview with PreviewDevice library. Let’s look at real cases on projects.

Case:

Preview on the device. Let’s say you want to…

Anton Polyakov

Senior iOS Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store