导语
这篇文章是方便自己学习理解苹果开发者的文档的笔记,希望能给有需要的同学一些帮助,因为自己翻译理解的内容,必然存在一些不足,还望指出。
Apple Developer
(https://developer.apple.com/)苹果开发者网站
笔记
Framework SwiftUI
Overview(综述)
SwiftUI provides views, controls, and layout structures for declaring your app's
user interface. The framework provides event handlers for delivering taps,
gestures, and other types of input to your app, and tools to manage the flow of
data from your app's models down to the views and controls that users will see
and interact with.
*注释
SwiftUI 提供了视图,控制,以及布局构造来说明你的app的用户界面。这个框架提供了传
递句柄,手势和在你的app里其他输入类别事件的处理,并且作为工具去管理从你的app的服
务层下载至视图层和控制层,换而言之就是用户将会看到的和使用的。
Essentials
learn to Make Apps with SwiftUI(了解使用SwiUI制作apps)
Follow a series of guided tutorials to learn to make apps using
SwiftUI and Xcode.
跟着指导教程系列去学习是有 SwiftUI 制作 app 在 Xcode上。
User Interface
Views and Controls(视图和控制)
Present your content onscreen and handle user interactions.
呈现你的屏幕内容和用户交互的触发事件。
Views Layout and Presrntation(视图布局和介绍)
Combine views in stacks, generate groups and lists of views
dynamically, and define view presentations and hierarchy.
联合在栈堆里的视图,形成动态地视图群和列表,然后定义视图并展示和显示
层级。
Drawing and Animation(绘制和动画)
Enhance your views with colors, shapes, and shadows, and customize
animated transitions between view states.
增强你的视图色彩,形状和阴影,以及视图状态的自定义动画切换。
Framework Integration(交互行为框架)
Integrate SwiftUI views into existing apps, and embed AppKit, UIKit,
and WatchKit views and controllers into SwiftUI view hierarchies.
整合 SwiftUI 视图进入到当前的apps,并且将AppKit,UIKit,WatchKit视图
和控制嵌入进 SwiftUI 视图层级中去。
Data and Events
State and Data Flow(属性和数据流)
Control and respond to the flow of data and changes within your
app’s models.
控制和响应数据流并且内部更改你的apps的数据模型
Gestures(手势)
Define interactions from taps, clicks, and swipes to fine-grained
gestures.
声明来自轻触,点击和翻页的详细手势的交互。
Previews in Xcode
Previews(预览)
Generate dynamic, interactive previews of your custom views.
动态生成你的用户界面的交互预览。
具体内容学习
(https://www.w3cschool.cn/) w3cschool