How do you introduce SwiftUI

I believe that many friends must go to the encyclopedia for the first time to see, it is a pity that there is no one to edit this entry. SwiftUI is still in the development stage. It is recommended that you get on board as soon as possible. Only when you come early can you get the first bonus.

In this article you will learn about SwiftUI

  • The Official Introduction of Apple

  • SwiftUI and Combine Programming by Onevcat

  • SwiftUI by Tutorials by raywenderlich’s team

  • DesignCode LEARN SWIFTUI FOR IOS 13

  • SwiftUI Views Mastery by Mark Moeykens

  • “SwiftUI for Absolute Beginners” by Jayant Varma

  • Apple Official Introduction

Write less code, build a better app. SwiftUI is an innovative, concise way to program and build user interfaces across all Apple platforms using the power of Swift. With it, you can create a user interface for any Apple device with a single set of tools and apis. SwiftUI uses the easy-to-understand, naturally written declarative Swift syntax and seamlessly supports the new Xcode design tools to keep your code highly in sync with your design. SwiftUI has native support for ‘dynamic fonts’,’ Dark mode ‘, localization and accessibility — the first line of SwiftUI code you write is already the most powerful UI code you’ll ever write.

Apple’s official presentation reveals a lot of hidden information, such as unifying the Apple world by breaking down the barriers between all apple devices with SwiftUI. SwiftUI Bridges the gap between programmers and designers, making App development more craftsman spirit. Deliver the power of your code with SwiftUI. One word is worth a thousand words.


SwiftUI and Combine Programming by Onevcat

  • Onevcat Wang Wei is a professional developer of iOS. He lives in Japan and is responsible for iOS project development at LINE

Onevcat introduces SwiftUI in SwiftUI & Combine Programming as follows:

  • SwiftUI, Apple’s first major system framework using Swift for its own platforms, will revolutionize the way user interfaces are built on the platform. It abandons the imperative approach of programming, which has been in use since the 1980s, in favor of the declarative camp, which raises the level of problem solving we need to tackle, allowing us to focus more on the more important creative aspects.
  • SwiftUI leverages Swift’s advanced concise syntax to provide a complete and elegant Domain-specific Language (DSL) for describing UI. Behind the beautiful appearance, Combine the responsive programming framework and the functional programming thought that has been deeply embedded in Swift jointly drive SwiftUI’s data flow. At the bottom, mature iOS and powerful UIKit enable SwiftUI to render efficiently and seamlessly with existing features. The common syntax and base types make it easier for developers to bring iOS apps to macOS and even to the Web.

Onevcat is a developer’s insight into SwiftUI from a programming paradigm perspective. He thinks SwiftUI will free us from the complexity of interface programming.


SwiftUI by Tutorials by raywenderlich’s team

So raywenderlich’s team was introduced in SwiftUI by Tutorials

Interface Builder (IB) and StoryBoards have helped many of us speed up the development of our applications, simplifying the layout of adaptive user interfaces and setting up navigation. But many developers prefer to create production views in code, partly because it’s more efficient to copy or edit the UI when writing it in code, but mainly because IB and StoryBoards have built-in traps that you can edit or remove the names of IBAction or IBOutlet from your code, Your application will crash because IB cannot see the code changes. Or, you might get angry about strings or string identifiers for table view cells that you must use in your code, but Xcode can’t check for you because they are strings. SwiftUI allows you to ignore Interface Builder (IB) and Storyboards without having to write detailed step-by-step instructions to lay out the UI. You can preview the SwiftUI view and its code side by side, and changes to one side update the other so they are always in sync. No identifier string can go wrong. It’s code, but much less than what you write for UIKit, and therefore easier to understand, edit, and debug.


  • DesignCode LEARN SWIFTUI FOR IOS 13

Author: Mengto

Mengto describes SWIFTUI in LEARN SWIFTUI FOR IOS 13 as follows:

SwiftUI is definitely the best way for designers to get their foot in the door. With real-time preview, you can iterate quickly and create powerful user interfaces with a few lines of code for all Apple platforms. Take your static design to the next level and build real-world applications with the simplicity of prototyping tools.

SwiftUI makes it incredibly easy to animate and add gestures to your applications. The code is light and easy to understand, even for newcomers to React or Flutter

From a designer’s perspective, Mengto believes SwiftUI’s core is animation and gestures, especially the live preview feature that takes App design to the next level.


SwiftUI Views Mastery by Mark Moeykens

Mark Moeykens in SwiftUI Views Mastery introduces:

SwiftUI is a combination of design and development that is incredibly integrated. Creating applications with Xcode in SwiftUI feels more and more like using design tools.

Jayant Varma is a developer, consultant and author with over 25 years of development experience, the last ten of which focused solely on iOS.

Jayant Varma in SwiftUI for Absolute Beginners was introduced like this:

SwiftUI is a declarative interface language. This may still not really answer or help you understand everything. An easy way to understand a declarative user interface is to simply state what you want, such as “I’m going to boil the eggs,” rather than specifying the steps of “Get the eggs, put them in a pot of water, put them on the fire and wait.” Seven minutes.” More focused on what’s important than how to get there. In a traditional programming language, you typically create a UI element, set its visual frame, set its color, background and foreground, and other attributes, and then set them at the visual level. With declarative, you simply specify the elements you want, and you can then modify them using modifiers.

SwiftUI is built around four fundamental principles: declarative, automated, componentized, and consistent


More SwiftUI tutorials and code focus columns

QQ:3365059189 SwiftUI Technical exchange QQ group :518696470

  • Please pay attention to my column icloudend SwiftUI tutorial and the source www.jianshu.com/c/7b3e3b671…