SwiftUI


'SwiftUI' Articles

Craig Federighi on iPad's Long-Awaited External Drive Support: 'We're Willing to Acknowledge the 1990s'

On the latest episode of the AppStories podcast, MacStories editor-in-chief Federico Viticci sat down with Apple's software engineering chief Craig Federighi to discuss WWDC 2019 announcements, including Project Catalyst, SwiftUI, and iPadOS. Craig Federighi at WWDC 2019 Project Catalyst will make it much easier for developers to extend iPad apps to the Mac. In many cases, adding macOS support to an iPad app is as easy as opening an Xcode project and clicking the Mac checkbox, although Apple encourages developers to further optimize their apps to offer a true Mac experience. Federighi believes Project Catalyst will allow many developers to bring their ‌iPad‌ apps to the Mac, as Apple has bridged the gap between its UIKit framework for iOS apps and its AppKit framework for Mac apps:UIKit and AppKit always remained these two separate worlds, and depending on what a developer did, they could build an app that was sort of factored in a way that they shared a lot of cross-platform code, but they had to always take that extra step of having people on the team that knew AppKit, people on the team that knew UIKit, and make the decision to specialize for those two. And for many developers, they chose one or the other and not both, because that was a real effort to get the expertise and to make the investment. Project Catalyst Federighi expressed excitement about Project Catalyst, noting that he has seen many apps that look fantastic on the ‌iPad‌ that he has wanted on the Mac. With macOS Catalina and Xcode 11, that is now a possibility, with Twitter being one of several

Apple Unveils New SwiftUI Framework For Building App Interfaces Using Less Code

At WWDC today, Apple announced a new Swift UI framework that allows developers to build their app interfaces using much less code. "The new app development technologies unveiled today make app development faster, easier and more fun for developers, and represent the future of app creation across all Apple platforms," said Craig Federighi, Apple’s senior vice president of Software Engineering. "SwiftUI truly transforms user interface creation by automating large portions of the process and providing real-time previews of how UI code looks and behaves in-app. We think developers are going to love it."Using SwiftUI's easy-to-understand declarative code, developers can create full-featured user interfaces complete with smooth animations. SwiftUI should also save developers time by providing several automatic functions including interface layout, Dark Mode, Accessibility, right-to-left language support and internationalization. In addition, a new graphical UI design tool built into Xcode 11 makes it easier for UI designers to quickly assemble a user interface with SwiftUI without having to write any code. Swift code is automatically generated and when this code is modified, the changes to the UI instantly appear in the visual design tool, allowing developers to see automatic, real-time previews of how the UI will look and behave as they refine and test their code. The new Swift API is universal, meaning it can be used to build app UIs for Apple Watch, Apple TV, Mac, iPad, iPhone, and ‌Apple Watch‌