SwiftUI: Managing Previews
How to preview in landscape mode? How to display Dark and light mode with ease?
1 min readOct 2, 2020
--
Previewing in landscape mode:
There is no direct way to achieve this. We use previewLayout
to fix window to landscape orientation by switching height and width.
struct Landscape<Content>: View where Content: View {…