SwiftUI是一种为任何苹果平台声明用户界面的现代方式。比以往任何时候都更快地创建美丽、动态的应用程序。
Apple官方SwiftUI教程:Creating and combining views | Apple Developer Documentation
第一步:打开Xcode,点击 “Create New Project” , 或者 选中菜单中的 File > New > Project.
第二步:选中iOS ->App->Next
第三步:输入项目名称、Organization identifier,interface选择SwiftUI,Language一定要是Swift
第四步:项目创建成功
关闭canvas,可以关闭实时预览区域
到此,你的 第一个SwiftUI 项目就创建成功了。