Stuck with UIKit?

  • Generate previews automatically for your UIKit code
  • Improve your workflow and feedback loop dramatically
  • Support for multiple UIKit subclasses

Frequently Asked Questions

  • UIKit Previews Generator is an Xcode Source Editor Extension that allows developers to quickly generate SwiftUI based previews for UIKit code.

    While you could write all the boilerplate code yourself, it becomes a tedious task doing so for every UIKit subclass you write, more so if you're only inspecting a series of UIKit classes.

  • Select any file containing UIKit code and run the "Generate previews" command. All the boilerplate needed to wrap your UIKit code in SwiftUI and generate the previews will be added automatically. The only thing you will need to add is the instantiation code for your UIKit subclass!

  • The extension makes no assumptions about your code. Perhaps your view controller is partially defined on a Storyboard, or expects a view model to be properly initialized.

  • UIKit Previews Generator can generate previews for subclasses of UIViewController, UIView, UITableViewCell, UICollectionViewCell and UITableViewHeaderFooterView.

Contact

If you have any questions, comments or suggestions please get in touch!