File tree Expand file tree Collapse file tree 13 files changed +77
-89
lines changed
Sources/DynamicUI/DynamicUI.docc/Views Expand file tree Collapse file tree 13 files changed +77
-89
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ This example demonstrates how to define a `DisclosureGroup` using DynamicUI's JS
88 "type" : " DisclosureGroup" ,
99 "title" : " Title" ,
1010 "children" : [
11- {
12- "type" : " Text" ,
13- "title" : " Content goes here" ,
14- }
15- ]
11+ {
12+ "type" : " Text" ,
13+ "title" : " Content goes here" ,
14+ }
15+ ]
1616 }
1717]
1818```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `Group` using DynamicUI's JSON schema.
77 {
88 "type" : " Group" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `GroupBox` using DynamicUI's JSON sche
77 {
88 "type" : " GroupBox" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `HSplitView` using DynamicUI's JSON sc
77 {
88 "type" : " HSplitView" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `HStack` using DynamicUI's JSON schema
77 {
88 "type" : " HStack" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `List` using DynamicUI's JSON schema.
77 {
88 "type" : " List" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `NavigationView` using DynamicUI's JSO
77 {
88 "type" : " NavigationView" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -7,24 +7,23 @@ This example demonstrates how to define a `Picker` using DynamicUI's JSON schema
77 {
88 "type" : " Picker" ,
99 "children" : [
10- {
11- "identifier" : " item1" ,
12- "type" : " Text" ,
13- "title" : " Item 1"
14- },
15- {
16- "identifier" : " item2" ,
17- "type" : " Text" ,
18- "title" : " Item 2" ,
19- "disabled" : true
20- },
21- {
22- "identifier" : " item3" ,
23- "type" : " Text" ,
24- "title" : " Item 3"
25- }
26- ]
27- }
10+ {
11+ "identifier" : " item1" ,
12+ "type" : " Text" ,
13+ "title" : " Item 1"
14+ },
15+ {
16+ "identifier" : " item2" ,
17+ "type" : " Text" ,
18+ "title" : " Item 2" ,
19+ "disabled" : true
20+ },
21+ {
22+ "identifier" : " item3" ,
23+ "type" : " Text" ,
24+ "title" : " Item 3"
25+ }
26+ ]
2827 }
2928]
3029```
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ This example demonstrates how to define a `ScrollView` using DynamicUI's JSON sc
77 {
88 "type" : " ScrollView" ,
99 "children" : [
10- {
11- "type" : " Text" ,
12- "title" : " Content goes here" ,
13- }
14- ]
15- }
10+ {
11+ "type" : " Text" ,
12+ "title" : " Content goes here" ,
13+ }
14+ ]
1615 }
1716]
1817```
Original file line number Diff line number Diff line change @@ -8,12 +8,11 @@ This example demonstrates how to define a `Section` using DynamicUI's JSON schem
88 "type" : " Section" ,
99 "title" : " Section Title" ,
1010 "children" : [
11- {
12- "type" : " Text" ,
13- "title" : " Content goes here" ,
14- }
15- ]
16- }
11+ {
12+ "type" : " Text" ,
13+ "title" : " Content goes here" ,
14+ }
15+ ]
1716 }
1817]
1918```
You can’t perform that action at this time.
0 commit comments