|
241 | 241 | enum CaseScope {
|
242 | 242 |
|
243 | 243 | }
|
| 244 | +
|
| 245 | + #if swift(<5.10) |
| 246 | + @MainActor(unsafe) |
| 247 | + #else |
| 248 | + @preconcurrency @MainActor |
| 249 | + #endif |
244 | 250 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
245 | 251 | switch store.state {
|
246 | 252 |
|
|
320 | 326 | case tweet(ComposableArchitecture.StoreOf<Tweet>)
|
321 | 327 | case alert(AlertState<Alert>)
|
322 | 328 | }
|
| 329 | +
|
| 330 | + #if swift(<5.10) |
| 331 | + @MainActor(unsafe) |
| 332 | + #else |
| 333 | + @preconcurrency @MainActor |
| 334 | + #endif |
323 | 335 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
324 | 336 | switch store.state {
|
325 | 337 | case .activity:
|
|
384 | 396 | case timeline(ComposableArchitecture.StoreOf<Timeline>)
|
385 | 397 | case meeting(ComposableArchitecture.StoreOf<Meeting>)
|
386 | 398 | }
|
| 399 | +
|
| 400 | + #if swift(<5.10) |
| 401 | + @MainActor(unsafe) |
| 402 | + #else |
| 403 | + @preconcurrency @MainActor |
| 404 | + #endif |
387 | 405 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
388 | 406 | switch store.state {
|
389 | 407 | case .timeline:
|
|
432 | 450 | enum CaseScope {
|
433 | 451 |
|
434 | 452 | }
|
| 453 | +
|
| 454 | + #if swift(<5.10) |
| 455 | + @MainActor(unsafe) |
| 456 | + #else |
| 457 | + @preconcurrency @MainActor |
| 458 | + #endif |
435 | 459 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
436 | 460 | switch store.state {
|
437 | 461 |
|
|
482 | 506 |
|
483 | 507 | }
|
484 | 508 |
|
| 509 | + #if swift(<5.10) |
| 510 | + @MainActor(unsafe) |
| 511 | + #else |
| 512 | + @preconcurrency @MainActor |
| 513 | + #endif |
| 514 | +
|
485 | 515 | package static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
486 | 516 | switch store.state {
|
487 | 517 |
|
|
532 | 562 |
|
533 | 563 | }
|
534 | 564 |
|
| 565 | + #if swift(<5.10) |
| 566 | + @MainActor(unsafe) |
| 567 | + #else |
| 568 | + @preconcurrency @MainActor |
| 569 | + #endif |
| 570 | +
|
535 | 571 | public static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
536 | 572 | switch store.state {
|
537 | 573 |
|
|
580 | 616 | enum CaseScope {
|
581 | 617 | case alert(AlertState<Never>)
|
582 | 618 | }
|
| 619 | +
|
| 620 | + #if swift(<5.10) |
| 621 | + @MainActor(unsafe) |
| 622 | + #else |
| 623 | + @preconcurrency @MainActor |
| 624 | + #endif |
583 | 625 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
584 | 626 | switch store.state {
|
585 | 627 | case let .alert(v0):
|
|
638 | 680 | case activity(ComposableArchitecture.StoreOf<Activity>)
|
639 | 681 | case timeline(ComposableArchitecture.StoreOf<Timeline>)
|
640 | 682 | }
|
| 683 | +
|
| 684 | + #if swift(<5.10) |
| 685 | + @MainActor(unsafe) |
| 686 | + #else |
| 687 | + @preconcurrency @MainActor |
| 688 | + #endif |
641 | 689 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
642 | 690 | switch store.state {
|
643 | 691 | case .activity:
|
|
697 | 745 | case timeline(ComposableArchitecture.StoreOf<Timeline>)
|
698 | 746 | case meeting(Meeting)
|
699 | 747 | }
|
| 748 | +
|
| 749 | + #if swift(<5.10) |
| 750 | + @MainActor(unsafe) |
| 751 | + #else |
| 752 | + @preconcurrency @MainActor |
| 753 | + #endif |
700 | 754 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
701 | 755 | switch store.state {
|
702 | 756 | case .timeline:
|
|
760 | 814 | case dialog(ConfirmationDialogState<Dialog>)
|
761 | 815 | case meeting(Meeting, syncUp: SyncUp)
|
762 | 816 | }
|
| 817 | +
|
| 818 | + #if swift(<5.10) |
| 819 | + @MainActor(unsafe) |
| 820 | + #else |
| 821 | + @preconcurrency @MainActor |
| 822 | + #endif |
763 | 823 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
764 | 824 | switch store.state {
|
765 | 825 | case let .alert(v0):
|
|
830 | 890 | case popover(ComposableArchitecture.StoreOf<Counter>)
|
831 | 891 | case sheet(ComposableArchitecture.StoreOf<Counter>)
|
832 | 892 | }
|
| 893 | +
|
| 894 | + #if swift(<5.10) |
| 895 | + @MainActor(unsafe) |
| 896 | + #else |
| 897 | + @preconcurrency @MainActor |
| 898 | + #endif |
833 | 899 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
834 | 900 | switch store.state {
|
835 | 901 | case .drillDown:
|
|
884 | 950 | enum CaseScope {
|
885 | 951 | case feature(ComposableArchitecture.StoreOf<Nested.Feature>)
|
886 | 952 | }
|
| 953 | +
|
| 954 | + #if swift(<5.10) |
| 955 | + @MainActor(unsafe) |
| 956 | + #else |
| 957 | + @preconcurrency @MainActor |
| 958 | + #endif |
887 | 959 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
888 | 960 | switch store.state {
|
889 | 961 | case .feature:
|
|
1246 | 1318 | #endif
|
1247 | 1319 |
|
1248 | 1320 | }
|
| 1321 | +
|
| 1322 | + #if swift(<5.10) |
| 1323 | + @MainActor(unsafe) |
| 1324 | + #else |
| 1325 | + @preconcurrency @MainActor |
| 1326 | + #endif |
1249 | 1327 | static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
|
1250 | 1328 | switch store.state {
|
1251 | 1329 | case .child:
|
|
0 commit comments