Apple Debuts SwiftUI and New Xcode Interactive Development Experience (venturebeat.com) 41
Apple today announced SwiftUI, a framework that complements its open source compiled programming language for iOS, macOS, watchOS, tvOS, Linux, and other platforms alongside a reimagined development experience in Xcode 11. VentureBeat reports: SwiftUI lets developers specify UI with simple declarations. In practice, it reduces hundreds of lines of code to just a few, and it provides default support for common features like localization for right-to-left languages. That's in addition to built-in support for animated transitions, live previews, and the newly announced dark mode and accessibility tools in iOS.
Apple says it's fully integrated with the aforementioned Xcode development experience and native frameworks for Apple Watch, tvOS, and macOS apps. Within the new Xcode, speaking of, library views live in a left-side drawer from which they can be dragged and dropped onto the app design canvas; as they're added, code populates the editor on the left. Meanwhile, views can be adjusted with custom-tailored inspectors or the code converted into a scalable list, and previews can run directly on connected Apple devices, including iPhone, iPad, iPod touch, Apple Watch, and Apple TV.
Apple says it's fully integrated with the aforementioned Xcode development experience and native frameworks for Apple Watch, tvOS, and macOS apps. Within the new Xcode, speaking of, library views live in a left-side drawer from which they can be dragged and dropped onto the app design canvas; as they're added, code populates the editor on the left. Meanwhile, views can be adjusted with custom-tailored inspectors or the code converted into a scalable list, and previews can run directly on connected Apple devices, including iPhone, iPad, iPod touch, Apple Watch, and Apple TV.
Re: (Score:2)
Maybe he's ambidextrous?
Swing and HTML (Score:2)
Re: (Score:2)
To connect users GUI actions with app output.
Everyone is reduced to education level code.
At a pace and CPU/GPU speed set by the brand.
Enjoy the safe GUI sandbox. To code outside the provided GUI is sinful.
Re: (Score:3)
The subhuman slavic oaf was trying for a haiku.
Welcome back (Score:4, Informative)
A GUI to let everyone try and code with.
Re: (Score:2)
No, he's American, and Americans insert random prepositions in place of the correct ones, because they're too stupid to remember simple things.
Stupid American here. I always thought "and" was a conjunction, [youtube.com] not a preposition... Thanks for educating us, enlightened AC.
Re: (Score:1)
Re: (Score:2)
Then having the time and skills to fully support that code with every OS change over a few years/many years?
A fun new GUI for everyone to make an app with.
How will many people with poor/no math skills get into the new app economy?
Educate people with math and the skills needed to code? Thats going to take decades.
Make the creation of apps more simple and GUI like? Everyone trying to make a computer project might like that.
A Hypercard lik
So is this MVVM in Swift? (Score:2)
Re: (Score:3)
Yeah, the mention of "declarative layout" and "binding" had me wondering if it was similar in concept to WPF/XAML as well. If so, this could be a pretty big deal for Swift developers. I've written some fairly complex applications using C#/WPF/XAML, like my game engine's editor. I have to admit I've become a pretty big fan of how nice it is to have a powerful layout and data binding mechanism like that.
It's interesting that the layout language is Swift itself. That makes things easier in some ways, since
Nice. This will put Apple back on track with ... (Score:2)
... a certain class of opinion leaders.
If you want me in your walled garden, it better be a nice one.
This seems the right way to got in exchange for developers devoting themselves to the iOS, macOS and iPadOS platforms. I totally didn't care about the Keynote this time and didn't watch it, but all the things I'm hearing got me curious. I'll take a look at apple once again after all.
My 2 eurocents.