Skip to content

Commit

Permalink
Mark a few protocols with NS_SWIFT_UI_ACTOR to avoid concurrency errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sash Zats authored and facebook-github-bot committed May 2, 2024
1 parent cff863b commit f4221a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/IGListKit/IGListAdapterDataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <NSObject>

Expand Down
1 change: 1 addition & 0 deletions Source/IGListKit/IGListSingleSectionController.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ typedef CGSize (^IGListSingleSectionCellSizeBlock)(id item, id<IGListCollectionC
/**
A delegate that can receive selection events on an `IGListSingleSectionController`.
*/
NS_SWIFT_UI_ACTOR
NS_SWIFT_NAME(ListSingleSectionControllerDelegate)
@protocol IGListSingleSectionControllerDelegate <NSObject>

Expand Down

0 comments on commit f4221a6

Please sign in to comment.