New Xcode 11 Beta 2 helps coders try out SwiftUI – ADTmag



New Xcode 11 Beta 2 Helps Coders Try SwiftUI

According to many accounts, Apple’s new SwiftUI development framework was the hit of the company’s big developer conference earlier this month, and the new Xcode 11 Beta 2 can help coders bring it to life. test with new features.

SwiftUI immediately sparked huge interest in the Apple-centric development camp with its new way of building user interfaces across all Apple platforms using a single set of tools and APIs.

In addition to providing truly native controls and other UI constructs on all platforms, it uses a declarative syntax, the Model-View-ViewModel (MVVM) design model (as opposed to the Model-View- Controller (MVC) mainly used for Apple apps) and works seamlessly with Xcode 11’s new drag-and-drop design tools.

In addition to providing controls, views, and layout structures to declare an application’s user interface, SwiftUI makes it easy to create event handlers for taps, gestures, and other input mechanisms, as well as tools to manage internal data flows from application models to views and controls.

SwiftUI also offers a new approach to IDE previews, generating dynamic and interactive previews of custom views on the fly.

“When you work in the design canvas, everything you edit is completely in sync with the code in the adjacent editor,” says Apple. “The code is instantly visible as a preview as you type, and any changes you make to that preview appear immediately in your code. Xcode instantly recompiles your changes and inserts them into a running version of your app, visible and modifiable at any time. ”

SwiftUI design overview
[Click on image for larger view.]SwiftUI design overview (source: Apple)

In addition to the drag-and-drop functionality, Xcode 11’s design tools include:

  • Dynamic Replacement: “The Swift compiler and runtime environment are fully integrated with Xcode, so your application is constantly being built and running. The design canvas you see isn’t just an approximation of your UI, it’s your live application. ”
  • Previews: “You can now create one or more previews of any SwiftUI view to get sample data and configure almost anything your users can see, like large fonts, locations, or dark mode. Previews can also display your UI on any device and in any orientation. ”

The move from MVC to MVVM was described in an article on the tech career site Dice, published the same day Xcode 11 Beta 2 was released (June 17).

“Colloquially, it seems the Apple app developer community finds SwiftUI and the MVVM model it uses simpler and more fun,” Dice said. “It’s a new paradigm that many aren’t used to, but it has animated the mind around the development of iOS, macOS, tvOS, watchOS, and iPadOS apps. Overall, MVVM was exactly what Apple – and its developers – needed. ”

Note that developers wishing to try Xcode 11 Beta 2 with SwiftUI must be running on macOS Catalina 10.15 beta.

Xcode 11 Beta 2 also includes new features and fixed issues affecting IDE components such as:

  • Apple Clang Compiler
  • Building system
  • Command line tools
  • Basic data
  • Debugging
  • Interface builder
  • Signature and distribution
  • Location
  • Simulator
  • Source control
  • Source editor
  • Quick tutorials
  • Trial

All of the above and more are detailed in the release notes

This week Apple also released: macOS Catalina 10.15 beta 2; iOS 13 beta 2; iPadOS 13 beta 2; watchOS 6 beta 2 and tvOS 13 beta 2.

About the Author

David Ramel is editor and writer for Converge360.

Leave A Reply

Your email address will not be published.