Commit c439d12
authored
Modern concurrency support (#175)
* Add @mainactor and Sendable annotations
Enable strict concurrency
Get backends to compile and update GTK backends
Mac-specific fixes
More sendability improvements (please tell me this compiles on Windows)
I love waiting 15 minutes for CI to compile a 1-line change
* Make Image Sendable
use concurrency-annotated version of ImageFormats
* Post-rebase fixes
* Add more mainactor annotations to windows1 parent fa6d364 commit c439d12Copy full SHA for c439d12
File tree
Expand file treeCollapse file tree
74 files changed
+332
-202
lines changedOpen diff view settings
Filter options
- Sources
- AppKitBackend
- Gtk3Backend
- GtkBackend
- HotReloadingMacrosPlugin
- SwiftCrossUI
- Backend
- Environment
- Actions
- Layout
- Scenes
- Values
- ViewGraph
- Views
- Modifiers/Lifecycle
- Shapes
- UIKitBackend
- WinUIBackend
- Tests/SwiftCrossUITests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
74 files changed
+332
-202
lines changedOpen diff view settings
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
96 | 96 | |
97 | 97 | |
98 | 98 | |
99 | | - |
| 99 | + |
100 | 100 | |
101 | 101 | |
102 | 102 | |
| ||
138 | 138 | |
139 | 139 | |
140 | 140 | |
| 141 | + |
| 142 | + |
| 143 | + |
141 | 144 | |
142 | 145 | |
143 | 146 | |
|
Collapse file
Sources/AppKitBackend/AppKitBackend.swift
Copy file name to clipboardExpand all lines: Sources/AppKitBackend/AppKitBackend.swift+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
| ||
316 | 316 | |
317 | 317 | |
318 | 318 | |
319 | | - |
| 319 | + |
320 | 320 | |
321 | 321 | |
322 | 322 | |
|
Collapse file
Sources/Gtk3Backend/Gtk3Backend.swift
Copy file name to clipboardExpand all lines: Sources/Gtk3Backend/Gtk3Backend.swift+14-10Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | | - |
| 67 | + |
68 | 68 | |
69 | 69 | |
70 | 70 | |
| ||
344 | 344 | |
345 | 345 | |
346 | 346 | |
347 | | - |
| 347 | + |
348 | 348 | |
349 | | - |
| 349 | + |
350 | 350 | |
351 | 351 | |
352 | 352 | |
353 | 353 | |
354 | | - |
| 354 | + |
355 | 355 | |
356 | 356 | |
357 | 357 | |
| ||
360 | 360 | |
361 | 361 | |
362 | 362 | |
363 | | - |
364 | | - |
365 | | - |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
366 | 368 | |
367 | 369 | |
368 | 370 | |
| ||
384 | 386 | |
385 | 387 | |
386 | 388 | |
387 | | - |
388 | | - |
389 | | - |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
390 | 394 | |
391 | 395 | |
392 | 396 | |
|
Collapse file
Sources/GtkBackend/GtkBackend.swift
Copy file name to clipboardExpand all lines: Sources/GtkBackend/GtkBackend.swift+14-10Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
| 68 | + |
69 | 69 | |
70 | 70 | |
71 | 71 | |
| ||
315 | 315 | |
316 | 316 | |
317 | 317 | |
318 | | - |
| 318 | + |
319 | 319 | |
320 | | - |
| 320 | + |
321 | 321 | |
322 | 322 | |
323 | 323 | |
324 | 324 | |
325 | | - |
| 325 | + |
326 | 326 | |
327 | 327 | |
328 | 328 | |
| ||
331 | 331 | |
332 | 332 | |
333 | 333 | |
334 | | - |
335 | | - |
336 | | - |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
337 | 339 | |
338 | 340 | |
339 | 341 | |
| ||
355 | 357 | |
356 | 358 | |
357 | 359 | |
358 | | - |
359 | | - |
360 | | - |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
361 | 365 | |
362 | 366 | |
363 | 367 | |
|
Collapse file
Sources/HotReloadingMacrosPlugin/HotReloadableAppMacro.swift
Copy file name to clipboardExpand all lines: Sources/HotReloadingMacrosPlugin/HotReloadableAppMacro.swift+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
104 | 104 | |
105 | 105 | |
106 | 106 | |
107 | | - |
| 107 | + |
108 | 108 | |
109 | 109 | |
110 | 110 | |
|
Collapse file
Sources/SwiftCrossUI/App.swift
Copy file name to clipboardExpand all lines: Sources/SwiftCrossUI/App.swift+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
6 | 7 | |
| ||
24 | 25 | |
25 | 26 | |
26 | 27 | |
| 28 | + |
27 | 29 | |
28 | 30 | |
29 | 31 | |
| 32 | + |
30 | 33 | |
31 | 34 | |
32 | 35 | |
33 | 36 | |
34 | | - |
| 37 | + |
35 | 38 | |
36 | 39 | |
37 | 40 | |
| ||
94 | 97 | |
95 | 98 | |
96 | 99 | |
97 | | - |
| 100 | + |
98 | 101 | |
99 | 102 | |
100 | 103 | |
|
Collapse file
Sources/SwiftCrossUI/Backend/AppBackend.swift
Copy file name to clipboardExpand all lines: Sources/SwiftCrossUI/Backend/AppBackend.swift+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
| 44 | + |
44 | 45 | |
45 | 46 | |
46 | 47 | |
| ||
120 | 121 | |
121 | 122 | |
122 | 123 | |
123 | | - |
| 124 | + |
124 | 125 | |
125 | 126 | |
126 | 127 | |
| ||
174 | 175 | |
175 | 176 | |
176 | 177 | |
177 | | - |
| 178 | + |
178 | 179 | |
179 | 180 | |
180 | 181 | |
| ||
193 | 194 | |
194 | 195 | |
195 | 196 | |
196 | | - |
| 197 | + |
197 | 198 | |
198 | 199 | |
199 | 200 | |
| ||
683 | 684 | |
684 | 685 | |
685 | 686 | |
686 | | - |
687 | 687 | |
688 | 688 | |
689 | 689 | |
|
Collapse file
Sources/SwiftCrossUI/Backend/ResolvedMenu.swift
Copy file name to clipboardExpand all lines: Sources/SwiftCrossUI/Backend/ResolvedMenu.swift+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
|
Collapse file
Sources/SwiftCrossUI/Environment/Actions/AlertAction.swift
Copy file name to clipboardExpand all lines: Sources/SwiftCrossUI/Environment/Actions/AlertAction.swift+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
0 commit comments