UIKit

How to preview UIViewControllers using SwiftUI

Take advantage of SwiftUI previews in UIKit!

Want to preview your UIViewControllers without launching you app in the simulator? You could just use Storyboards and/or XIB’s. If you’re like me then Storyboards and XIB’s don’t work for you then is there an alternative? The answer is SwiftUI previews!

In this post I will show you how to preview your programmatically built UIViewControllers. I assume you are familiar with iOS app development and Swift. You should…

--

--

--

Senior iOS Engineer at Travelperk. 7+ years experience with iOS and Swift. Blogging my knowledge and experience.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Swift questions and answers part -II

Dexie 3.0.3 is out

How to build universal iOS frameworks using XCFrameworks

A Guide to Concurrency in iOS and Swift

Using Swift Enums as Stateful Data Models

How to create UIScrollViews Programmatically

Making simple HTTP requests using shared URLSession

iOS — Custom Transitions

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
Anurag Ajwani

Anurag Ajwani

Senior iOS Engineer at Travelperk. 7+ years experience with iOS and Swift. Blogging my knowledge and experience.

More from Medium

Struct vs Class: Difference between Struct and Class in Swift

The best registries for your Swift Package

👾 Apollo Integration Fun on iOS

How to mock API in Swift