From bcd8b078cbb448ed1e712aa03ec7cd56007a9709 Mon Sep 17 00:00:00 2001 From: "Michael Chen (iOS)" Date: Wed, 21 Aug 2024 14:41:14 -0700 Subject: [PATCH] Updates IGGiftsFeed to strict concurrency checks Summary: Had to do a preconcurrency import because `gIGRootViewController` is declared as a static var which doesn't work with concurrency checks since it's considered mutable shared state. Will update once I find a better solution. Reviewed By: ale-sisto Differential Revision: D61615924 fbshipit-source-id: 2352d488ae18813aae22e341ace97edab4c1c4ef --- Source/IGListKit/IGListBindingSectionController.h | 1 + Source/IGListKit/IGListBindingSectionControllerDataSource.h | 1 + Source/IGListKit/IGListSupplementaryViewSource.h | 1 + 3 files changed, 3 insertions(+) diff --git a/Source/IGListKit/IGListBindingSectionController.h b/Source/IGListKit/IGListBindingSectionController.h index 5647e4b73..62bc30d65 100644 --- a/Source/IGListKit/IGListBindingSectionController.h +++ b/Source/IGListKit/IGListBindingSectionController.h @@ -48,6 +48,7 @@ NS_ASSUME_NONNULL_BEGIN Only when `-diffIdentifier`s match is object equality compared, so you can assume the class is the same, and the instance has already been checked. */ +NS_SWIFT_UI_ACTOR NS_SWIFT_NAME(ListBindingSectionController) @interface IGListBindingSectionController<__covariant ObjectType : id> : IGListSectionController diff --git a/Source/IGListKit/IGListBindingSectionControllerDataSource.h b/Source/IGListKit/IGListBindingSectionControllerDataSource.h index f195449f7..0901dea50 100644 --- a/Source/IGListKit/IGListBindingSectionControllerDataSource.h +++ b/Source/IGListKit/IGListBindingSectionControllerDataSource.h @@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN /** A protocol that returns data to power cells in an `IGListBindingSectionController`. */ +NS_SWIFT_UI_ACTOR NS_SWIFT_NAME(ListBindingSectionControllerDataSource) @protocol IGListBindingSectionControllerDataSource diff --git a/Source/IGListKit/IGListSupplementaryViewSource.h b/Source/IGListKit/IGListSupplementaryViewSource.h index 762c99059..c3c6a6706 100644 --- a/Source/IGListKit/IGListSupplementaryViewSource.h +++ b/Source/IGListKit/IGListSupplementaryViewSource.h @@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN `IGListAdapter` which then configures and maintains a `UICollectionView`. The supplementary API reflects that in `UICollectionView`, `UICollectionViewLayout`, and `UICollectionViewDataSource`. */ +NS_SWIFT_UI_ACTOR NS_SWIFT_NAME(ListSupplementaryViewSource) @protocol IGListSupplementaryViewSource