SwiftUI01

.Introducing SwiftUI

SwiftUI is a modern way to declare user interfaces for any Apple platform. Create beautiful, dynamic apps faster than ever before.

  • SwiftUI is a modern method of any Apple platform user interface is declared. At an unprecedented rate to create beautiful, dynamic applications

Describe your layout just once.

  • Description once your layout.

Declare the content and layout for any state of your view. SwiftUI knows when that state changes, and updates your view’s rendering to match.

  • The content and layout of any state in the declaration view. SwiftUI know when the state changes, and updates the rendering views to match.

Build reusable components.

Construction of reusable components.

Combine small, single-responsibility views into larger, more complex interfaces. Share your custom views between apps designed for any Apple platform.

  • The small single view composition in response to larger, more complex interface. Share your custom view between applications designed for any Apple platform.

Simplify your animations.

Simplify your animation.

Creating smooth animations is as easy as adding a single method call. SwiftUI automatically calculates and animates transitions when needed.

  • Create smooth animations as simple as adding a single method call. SwiftUI will automatically calculate and animate the transition animation when needed.

See it live in Xcode.

Live in Xcode.

Design, build, and test your app’s interface without ever running your app. Test your controls as well as your layout using interactive previews.

  • Without running the application to design, build and test the application interface. Use the interactive preview and test your control layout.

Tutorial

Course

Creating and Combining Views

Creating and combined view

This tutorial guides you through building Landmarks — an iOS app for discovering and sharing the places you love. You’ll start by building the view that shows a landmark’s details.

  • This tutorial will guide you through the build tag - one for discover and share your favorite places of iOS applications. You will first view the detailed information of the landmark building display.

Reproduced in: https: //www.jianshu.com/p/37e644a20ab1

Guess you like

Origin blog.csdn.net/weixin_34217711/article/details/91066175