Member-only story
It’s been a while and SwiftUI is out and it’s quite exciting and lovely, why you ask
- No pain of dealing to merge those crazy conflicts in Storyboards.
- No IBOutlet and IBActions to deal with.
- Declarative syntax is just easy to learn.
- No implementation of those delegate methods to change the state of UI components.
- You can build UI for multiple platform of the apple ecosystem.
- Automatic support for dark mode
- 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
- One that supports iOS version below iOS 13 which would be a Storyboard and Xib version