Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasel Li committed Dec 26, 2019
1 parent acf26ff commit 3a35a44
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ When learning and using `SwiftUI`, if you have any questions, you can join the S
- [Group](#Group)
- [GroupBox](#GroupBox)
- [Section](#Section)
- [Form](#Form)

* <span id="Architectural_D">Architectural Views</span>
- [NavigationView](#NavigationView)
Expand Down Expand Up @@ -686,6 +687,24 @@ Section(header: Text("I'm header"), footer: Text("I'm footer")) {
<img width="80%" src="images/example/Section.png"/>
</details>

<h4 id="Form"> Form </h4>

`Form` A container for grouping controls used for data entry, such as in settings or inspectors.

Example:

```swift
Form {
TextField("First Name", text: $firstName)
TextField("Last Name", text: $lastName)
}
```

<details close>
<summary>View running results</summary>
<img width="80%" src="images/example/Form.png"/>
</details>

[🔝](#Layout_D)

<h4 id="NavigationView"> NavigationView </h4>
Expand Down
19 changes: 19 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- [Group](#Group)
- [GroupBox](#GroupBox)
- [Section](#Section)
- [Form](#Form)

* <span id="Architectural_D">Architectural Views 导航、切换、排列</span>
- [NavigationView](#NavigationView)
Expand Down Expand Up @@ -692,6 +693,24 @@ Section(header: Text("I'm header"), footer: Text("I'm footer")) {
<img width="80%" src="images/example/Section.png"/>
</details>

<h4 id="Form"> Form </h4>

`Form` 是对一组数据输入进行控制的容器

Example:

```swift
Form {
TextField("First Name", text: $firstName)
TextField("Last Name", text: $lastName)
}
```

<details close>
<summary>查看运行效果</summary>
<img width="80%" src="images/example/Form.png"/>
</details>

[🔝](#Layout_D)

<h4 id="NavigationView"> NavigationView </h4>
Expand Down

0 comments on commit 3a35a44

Please sign in to comment.