Affiliate Disclosure
If you buy through our links, we may get a commission. Read our ethics policy.

Apple's new Swift UI designed to help developers build better apps with less code

Last updated

Apple's migration and evolution of Swift continues, with the company releasing the latest iteration of the technology in Swift UI.

Introducing the newest generation of Swift, Apple's Craig Federighi demonstrated how a hundred-line piece of code simplified down to about a dozen lines.

Xcode has a new interactive developer experience. A preview on a simulated device updates immediately, based on developer changes.

The new Swift UI uses graphical modules to drop in segments of code, adding the lines as it expands. Pull-down menus make parameter alternation simpler for developers.

A single click allows developers to shift to the simulator. Apps can be moved to actual hardware nearly instantly, with live edits in Xcode automatically migrated to the attached device.

Swift UI also integrated with other APIs, like ARKit. Automatic language optimization for left-to-right languages is included.

The new additions can be used across the entire run of Apple's platforms, including Apple TV, and the Apple Watch.

AppleInsider will be reporting live throughout WWDC 2019, starting with the keynote on Monday, June 3. Get every announcement as it happens by downloading the AppleInsider app for iOS, and by making sure to follow us on YouTube, Twitter @appleinsider, Facebook and Instagram.



15 Comments

wizard69 21 Years · 13358 comments

This is something I need to follow because honestly I hate Apples approach to GUI building.   Will be reviewing WWDC videos with great interest.  

rezwits 17 Years · 856 comments

2 comments?  One codebase for all Devices... ahh... time to do full re-writes, but willingly! LOL

jogu 10 Years · 9 comments

Sadly SwiftUI seems to be tagged as an iOS 13 only feature, so existing apps aren’t going to be able to move their views to it in the immediate future unless they’re willing to drop iOS 12 and lower support.

Still awesome though!

Eric_WVGG 8 Years · 969 comments

wizard69 said:
This is something I need to follow because honestly I hate Apples approach to GUI building. 

Pretty wild… I was evaluating a couple third-party libs that do more or less the same thing, but as soon as you started to get into interesting stuff like NSSplitViewNavigator they pretty much fell to pieces. 

If I was starting a new app today, I'd use it, backward compatibility be damned.