From f4221a665718a147d1600082f794b9b31dddfdc3 Mon Sep 17 00:00:00 2001 From: Sash Zats Date: Thu, 2 May 2024 11:29:30 -0700 Subject: [PATCH] Mark a few protocols with NS_SWIFT_UI_ACTOR to avoid concurrency errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: ## Context We are building native prototype for the GenAI native intent proposal that's being currently reviewd by MZ. Current version is meant for internal dogfooding but pending proper plan for the public rollout This stack is intentionally cutting some corners from the [original figma spec](https://www.figma.com/file/JuCEe2ppgOHCtljPdiuGZ5/Meta-AI-Imagine-%E2%80%94-FoA-alignment-%E2%80%94-MZ-Deck-%E2%80%94-V3?type=design&node-id=107-35979&mode=design&t=hvEAmIjKvjB3xvyC-0) in favour of getting this into the hands of stakeholders sooner ## This diff Makign this into a separate diff in case I will need to update codebase to match this declaration (or revert 🙂) Reviewed By: corywilhite Differential Revision: D56825302 fbshipit-source-id: 49ff96f546d2be0dc3b371a4c7bf48841ad72425 --- Source/IGListKit/IGListAdapterDataSource.h | 1 + Source/IGListKit/IGListSingleSectionController.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/IGListKit/IGListAdapterDataSource.h b/Source/IGListKit/IGListAdapterDataSource.h index 4f868e181..61157ba6a 100644 --- a/Source/IGListKit/IGListAdapterDataSource.h +++ b/Source/IGListKit/IGListAdapterDataSource.h @@ -22,6 +22,7 @@ NS_ASSUME_NONNULL_BEGIN /** Implement this protocol to provide data to an `IGListAdapter`. */ +NS_SWIFT_UI_ACTOR NS_SWIFT_NAME(ListAdapterDataSource) @protocol IGListAdapterDataSource diff --git a/Source/IGListKit/IGListSingleSectionController.h b/Source/IGListKit/IGListSingleSectionController.h index b3984a56d..0f63a5901 100644 --- a/Source/IGListKit/IGListSingleSectionController.h +++ b/Source/IGListKit/IGListSingleSectionController.h @@ -43,6 +43,7 @@ typedef CGSize (^IGListSingleSectionCellSizeBlock)(id item, id