Apple's new Swift UI designed to help developers build better apps with less code
Apple's migration and evolution of Swift continues, with the company releasing the latest iteration of the technology in Swift UI.
-l.jpg)
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.
-l.jpg)
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.
Comments
AMAZEBALLS!!!
Still awesome though!
If I was starting a new app today, I'd use it, backward compatibility be damned.
As a study in future job opportunities do you think learning Swift or Node.js is a better direction. Right now I’m 100%
PHP, LAMP which has served me well. Just looking toward the future.
Since Swift still doesn't support generics and therefor doesn't have something like the biggest advance in programming since the IDE - the Standard Template Library, I'll stick with the most powerful coding system ever - Objective C++.
All of their existing hard-won iOS development knowledge was rendered useless in about, what, a 10-minute demo?
That's the nature of software development. If you're doing it right then it's a constant process of learning and refining.
Hah! I knew it! I always said that Swift was based on Python, not Java.
What nailed it for me was when they removed the currying declaration, which made it a lot more Python-like.
Here's a page explaining how those non-existent generics work in Swift.
Generics.html
When you spend your life looking backwards, you often miss the stuff ahead.
At least someone is.
In my opinion, either will serve you well. I prefer Swift, but Node.js is probably the better choice if you want to stay in web development.