Member-only story

When to migrate existing apps from UIKit to SwiftUI

Codecat15
4 min readApr 28, 2020

--

It’s been a while and SwiftUI is out and it’s quite exciting and lovely, why you ask

  1. No pain of dealing to merge those crazy conflicts in Storyboards.
  2. No IBOutlet and IBActions to deal with.
  3. Declarative syntax is just easy to learn.
  4. No implementation of those delegate methods to change the state of UI components.
  5. You can build UI for multiple platform of the apple ecosystem.
  6. Automatic support for dark mode
  7. No dealing with constraints (I saved the best for the last)

And many more benefits, but only if your apps are targeted from iOS 13 and above

But wait, if you have an existing application which supports versions below iOS 13 you can still use SwiftUI with ease, and all you have to do is maintain two separate codebase for your UI

  1. One that supports iOS version below iOS 13 which would be a Storyboard and Xib version

--

--

Codecat15
Codecat15

No responses yet