Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frank/translation principles #27

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
翻译: 'ContentView 是遵循 View protocol(协议)的 struct(结构体)。'
- 内容: 'A view defines one or more visual elements that appear somewhere on a screen. A view is typically made up of other views, creating a view hierarchy.'
提示: ''
翻译: 'view(视图)定义了一个或多个出现在屏幕上的可见元素。view(视图)通常由其他视图构成,最终 view hierarchy(视图树)。'
翻译: 'view(视图)定义了一个或多个出现在屏幕上的可见元素。view(视图)通常由其他视图构成,最终形成 view hierarchy(视图树)。'
- 内容: 'Implementing body is a common pattern that you see throughout your SwiftUI code; for instance, when a structure conforms to protocols such as App, Scene, and View.'
提示: ''
翻译: '在编写 SwiftUI 代码的过程中,在结构体中实现 body(主体)属性,是一种非常常见的模式;例如,当结构体遵循 App,Scene,View 协议时,内部都要实现 body(主体)属性。'
Expand Down Expand Up @@ -159,7 +159,7 @@
翻译: '第 10 步'
- 内容: 'When you run the sample app, it displays the scene that contains the view hierarchy described in ContentView.'
提示: ''
翻译: '但你运行示例 App,他会展示 scene(场景),该场景包含 ContentView 里的 view hierachy(视图树)'
翻译: '当你运行示例 App,他会展示 scene(场景),该场景包含 ContentView 里所描述的 view hierachy(视图树)'
- 内容: 'Build and run the sample using Xcode. Then play around with code by following the suggested experiments mentioned in the previous steps.'
提示: ''
翻译: '使用 Xcode 编译并运行示例。然后按照前面步骤中提到的建议的实践内容,尝试编写一下代码。'
Expand Down
Loading