Skip to content

Commit ab985a4

Browse files
committed
Support iOS 15+, macOS 12+, tvOS 14+, watchOS 7+, macCatalyst 15+, visionOS 1.0+
1 parent bcfc0d1 commit ab985a4

File tree

4 files changed

+45
-10
lines changed

4 files changed

+45
-10
lines changed

Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import PackageDescription
66
let package = Package(
77
name: "DynamicUI",
88
platforms: [
9-
.iOS(.v15), // Untested.
10-
.macOS(.v12), // Tested.
11-
.tvOS(.v14), // Untested.
12-
.watchOS(.v6), // Untested.
13-
.macCatalyst(.v15) // Untested.
9+
.iOS(.v15),
10+
.macOS(.v12),
11+
.tvOS(.v14),
12+
.watchOS(.v7),
13+
.macCatalyst(.v15)
1414
],
1515
products: [
1616
// Products define the executables and libraries a package produces, making them visible to other packages.

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
Convert your JSON to a SwiftUI View.
44

55
> [!WARNING]
6-
>
6+
>
77
> This is a work in progress and not yet ready for production use. \
88
> Please feel free to contribute, report issues, or request features.
99
1010
## Requirements
1111

1212
- Swift 5.9+ (Xcode 15+)
13-
- iOS 15+, macOS 12+
13+
- iOS 15+, macOS 12+, tvOS 14+, watchOS 7+, macCatalyst 15+, visionOS 1.0+
1414

1515
## Installation
1616

@@ -28,6 +28,7 @@ targets: [
2828
```
2929

3030
And import it:
31+
3132
```swift
3233
import DynamicUI
3334
```
@@ -57,9 +58,11 @@ struct ContentView: View {
5758
```
5859

5960
### Playground Application:
61+
6062
In the directory `Playground` is a Xcode project to build the [Playground Application](#Playground)
6163

6264
### Supported View Types:
65+
6366
_Please note:_ Items prefixed with ⚠ may ignore passed parameters.
6467
Items <s>with a strikethrough</s> are not yet supported.
6568

@@ -72,6 +75,7 @@ Items <s>with a strikethrough</s> are not yet supported.
7275
"children": [ ]
7376
}
7477
```
78+
7579
</details>
7680

7781
<details>
@@ -83,6 +87,7 @@ Items <s>with a strikethrough</s> are not yet supported.
8387
"children": [ ]
8488
}
8589
```
90+
8691
</details>
8792

8893
<details>
@@ -94,6 +99,7 @@ Items <s>with a strikethrough</s> are not yet supported.
9499
"children": [ ]
95100
}
96101
```
102+
97103
</details>
98104

99105
<details>
@@ -105,6 +111,7 @@ Items <s>with a strikethrough</s> are not yet supported.
105111
"children": [ ]
106112
}
107113
```
114+
108115
</details>
109116

110117
<details>
@@ -116,6 +123,7 @@ Items <s>with a strikethrough</s> are not yet supported.
116123
"children": [ ]
117124
}
118125
```
126+
119127
</details>
120128

121129
<details>
@@ -127,6 +135,7 @@ Items <s>with a strikethrough</s> are not yet supported.
127135
"children": [ ]
128136
}
129137
```
138+
130139
</details>
131140

132141
<details>
@@ -138,6 +147,7 @@ Items <s>with a strikethrough</s> are not yet supported.
138147
"children": [ ]
139148
}
140149
```
150+
141151
</details>
142152

143153
<details>
@@ -149,6 +159,7 @@ Items <s>with a strikethrough</s> are not yet supported.
149159
"title": "Click me!"
150160
}
151161
```
162+
152163
</details>
153164

154165
<details>
@@ -160,6 +171,7 @@ Items <s>with a strikethrough</s> are not yet supported.
160171
"title": "..."
161172
}
162173
```
174+
163175
</details>
164176

165177
<details>
@@ -171,6 +183,7 @@ Items <s>with a strikethrough</s> are not yet supported.
171183
"imageURL": "systemName"
172184
}
173185
```
186+
174187
</details>
175188

176189
<details>
@@ -181,6 +194,7 @@ Items <s>with a strikethrough</s> are not yet supported.
181194
"type": "Divider"
182195
}
183196
```
197+
184198
</details>
185199

186200
<details>
@@ -191,6 +205,7 @@ Items <s>with a strikethrough</s> are not yet supported.
191205
"type": "Spacer"
192206
}
193207
```
208+
194209
</details>
195210

196211
<details>
@@ -202,6 +217,7 @@ Items <s>with a strikethrough</s> are not yet supported.
202217
"title": "..."
203218
}
204219
```
220+
205221
</details>
206222

207223
<details>
@@ -214,6 +230,7 @@ Items <s>with a strikethrough</s> are not yet supported.
214230
"defaultValue": "..."
215231
}
216232
```
233+
217234
</details>
218235

219236
<details>
@@ -226,6 +243,7 @@ Items <s>with a strikethrough</s> are not yet supported.
226243
"defaultValue": "..."
227244
}
228245
```
246+
229247
</details>
230248

231249
<details>
@@ -238,6 +256,7 @@ Items <s>with a strikethrough</s> are not yet supported.
238256
"defaultValue": "..."
239257
}
240258
```
259+
241260
</details>
242261

243262
<details>
@@ -250,6 +269,7 @@ Items <s>with a strikethrough</s> are not yet supported.
250269
"defaultValue": true
251270
}
252271
```
272+
253273
</details>
254274

255275
<details>
@@ -262,6 +282,7 @@ Items <s>with a strikethrough</s> are not yet supported.
262282
"defaultValue": 0.5
263283
}
264284
```
285+
265286
</details>
266287

267288
<details>
@@ -275,6 +296,7 @@ Items <s>with a strikethrough</s> are not yet supported.
275296
"total": 100
276297
}
277298
```
299+
278300
</details>
279301

280302
<details>
@@ -288,6 +310,7 @@ Items <s>with a strikethrough</s> are not yet supported.
288310
"maxLabel": "max"
289311
}
290312
```
313+
291314
</details>
292315

293316
<details>
@@ -299,6 +322,7 @@ Items <s>with a strikethrough</s> are not yet supported.
299322
"children": [ ]
300323
}
301324
```
325+
302326
</details>
303327

304328
<details>
@@ -310,6 +334,7 @@ Items <s>with a strikethrough</s> are not yet supported.
310334
"children": [ ]
311335
}
312336
```
337+
313338
</details>
314339

315340
<details>
@@ -321,6 +346,7 @@ Items <s>with a strikethrough</s> are not yet supported.
321346
"children": [ ]
322347
}
323348
```
349+
324350
</details>
325351

326352
<details>
@@ -332,6 +358,7 @@ Items <s>with a strikethrough</s> are not yet supported.
332358
"children": [ ]
333359
}
334360
```
361+
335362
</details>
336363

337364
<details>
@@ -344,6 +371,7 @@ Items <s>with a strikethrough</s> are not yet supported.
344371
"values": ["...", "..."]
345372
}
346373
```
374+
347375
</details>
348376

349377
<details>
@@ -355,6 +383,7 @@ Items <s>with a strikethrough</s> are not yet supported.
355383
"children": [ ]
356384
}
357385
```
386+
358387
</details>
359388

360389
<details>
@@ -366,18 +395,22 @@ Items <s>with a strikethrough</s> are not yet supported.
366395
"children": [ ]
367396
}
368397
```
398+
369399
</details>
370400

371401
## Images
372402

373403
### Playground
404+
374405
<a name="Playground">
375406
<img width="804" alt="image" src="https://github.com/user-attachments/assets/cfd7ba02-88b1-410d-a6ba-54c9ebee06e0">
376407

377408
### V0.0.1 in action
409+
378410
<img width="835" alt="image" src="https://github.com/0xWDG/DynamicUI/assets/1290461/02e2d735-5496-4b68-a428-9e03815bf4d6">
379411

380412
## Used By
413+
381414
- [Aurora Editor](https://github.com/AuroraEditor/AuroraEditor) for custom views in extensions.
382415

383416
## Contact

Sources/DynamicUI/DynamicUI.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ struct InternalDynamicUI: View {
9191
} else {
9292
ProgressView()
9393
.frame(width: 150, height: 150)
94+
#if !os(tvOS) && !os(watchOS)
9495
.controlSize(.large)
96+
#endif
9597
.padding()
9698

9799
Text("Generating interface...")

build.command

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#/usr/bin/env bash
22

33
function build_for {
4-
echo "Building for $1"
4+
/bin/echo -n "Building for $1..."
55

66
xcrun xcodebuild clean build -quiet -scheme DynamicUI -destination generic/platform="$1"
77

88
if [ $? -eq 0 ]; then
9-
echo -n "Build for $1 succeeded"
9+
echo -e "\rBuild for $1... succeeded."
1010
else
11-
echo -n "Build for $1 failed"
11+
echo -e "\rBuild for $1... failed."
1212
exit 1
1313
fi
1414
}

0 commit comments

Comments
 (0)