A new tool by Swiftify (known for their Objective-C to Swift Converter) allows Storyboards to be converted to SwiftUI in 1 click! • Get ready to port your iOS apps to macOS • Readable code • Collaborate easily • UI code is checked at compile time
Seems like it works with .xib files as well as they are a subset of storyboard. Is this correct? We use only xib files in our project and will be looking forward to migrate to SwiftUI in 1.5 years.
You are right an xib is indeed a subset of storyboard. Right now we do not support xibs but we would be adding full support for xibs shortly. By the time you would be migrating to SwiftUI the product would have matured significantly.
@ilya@ibrahimh_ss_n In fact, we do support XIB's as well as storyboards since our latest release. Consider this a "hidden" feature - seems like even not everyone in our team knows about that ;)
We will advertise that soon, but you can already paste an XIB file to the converter and that should work (at least for basic controls).
Way back in 2014, just a few months after the Swift language was introduced,
Swiftify created a converter from Objective-C to Swift that became the best of its kind.
Five years later, Apple has introduced SwiftUI – a revolutionary way to develop a UI for iOS and macOS apps using Swift code.
Benefits of SwiftUI include:
• Easier collaboration
• Readable code (as opposed to cryptic XML format used by Storyboards)
• Compile-time checking
• A step towards porting iOS apps to macOS
This time Swiftify was the first to introduce a converter from Storyboards to SwiftUI!
The following features are currently supported:
• Storyboard and XIB files
• Full support for View, Text, Button controls
• Very basic support for other controls
• Attributed text (fonts, text styles, foreground and background colors)
• Exact replication of the positioning of storyboard elements (except for Auto Layout constraints)
The best thing is, the Storyboard to SwiftUI converter is now absolutely free and unlimited for Swiftify users!
I worked long and hard to build out my Storyboard UIs. Now all that work can be translated accurately to SwiftUI code, thanks to the awesome team at Swiftify. Code on! 🚀
Thanks @rushkeegan - really appreciate your super-positive feedback on this!
The product is yet on its early stage but so far the community feedback is great, and we are going to continue improving it in order to cover as much as possible :)
Storyboard to SwiftUI Converter
Storyboard to SwiftUI Converter
Storyboard to SwiftUI Converter
Traverse
Storyboard to SwiftUI Converter