@@ -231,7 +231,7 @@ NS_ASSUME_NONNULL_BEGIN
231231 *
232232 * This method must be called on the main thread.
233233 */
234- - (void )scrollToItemAtIndexPath : (NSIndexPath *)indexPath atScrollPosition : (UICollectionViewScrollPosition)scrollPosition animated : (BOOL )animated ;
234+ - (void )scrollToItemAtIndexPath : (NSIndexPath *)indexPath atScrollPosition : (UICollectionViewScrollPosition)scrollPosition animated : (BOOL )animated NS_SWIFT_UI_ACTOR ;
235235
236236/* *
237237 * Determines collection node's current scroll direction. Supports 2-axis collection nodes.
@@ -271,7 +271,7 @@ NS_ASSUME_NONNULL_BEGIN
271271 * Boolean parameter that contains the value YES if all of the related animations completed successfully or
272272 * NO if they were interrupted. This parameter may be nil. If supplied, the block is run on the main thread.
273273 */
274- - (void )performBatchAnimated : (BOOL )animated updates : (nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable void (^)(BOOL finished))completion;
274+ - (void )performBatchAnimated : (BOOL )animated updates : (nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable NS_SWIFT_UI_ACTOR void (^)(BOOL finished))completion NS_SWIFT_UI_ACTOR ;
275275
276276/* *
277277 * Perform a batch of updates asynchronously, optionally disabling all animations in the batch. This method must be called from the main thread.
@@ -282,7 +282,7 @@ NS_ASSUME_NONNULL_BEGIN
282282 * Boolean parameter that contains the value YES if all of the related animations completed successfully or
283283 * NO if they were interrupted. This parameter may be nil. If supplied, the block is run on the main thread.
284284 */
285- - (void )performBatchUpdates:(nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable void (^)(BOOL finished))completion;
285+ - (void )performBatchUpdates:(nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable void (^)(BOOL finished))completion NS_SWIFT_UI_ACTOR ;
286286
287287/* *
288288 * Returns YES if the ASCollectionNode is still processing changes from performBatchUpdates:.
@@ -311,7 +311,7 @@ NS_ASSUME_NONNULL_BEGIN
311311 *
312312 * Calling -waitUntilAllUpdatesAreProcessed is one way to flush any pending update completion blocks.
313313 */
314- - (void )onDidFinishProcessingUpdates:(void (^)(void ))didFinishProcessingUpdates;
314+ - (void )onDidFinishProcessingUpdates:(NS_SWIFT_UI_ACTOR void (^)(void ))didFinishProcessingUpdates;
315315
316316/* *
317317 * Blocks execution of the main thread until all section and item updates are committed to the view. This method must be called from the main thread.
@@ -326,7 +326,7 @@ NS_ASSUME_NONNULL_BEGIN
326326 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
327327 * before this method is called.
328328 */
329- - (void )insertSections : (NSIndexSet *)sections ;
329+ - (void )insertSections : (NSIndexSet *)sections NS_SWIFT_UI_ACTOR ;
330330
331331/* *
332332 * Deletes one or more sections.
@@ -336,7 +336,7 @@ NS_ASSUME_NONNULL_BEGIN
336336 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
337337 * before this method is called.
338338 */
339- - (void )deleteSections : (NSIndexSet *)sections ;
339+ - (void )deleteSections : (NSIndexSet *)sections NS_SWIFT_UI_ACTOR ;
340340
341341/* *
342342 * Reloads the specified sections.
@@ -346,7 +346,7 @@ NS_ASSUME_NONNULL_BEGIN
346346 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
347347 * before this method is called.
348348 */
349- - (void )reloadSections : (NSIndexSet *)sections ;
349+ - (void )reloadSections : (NSIndexSet *)sections NS_SWIFT_UI_ACTOR ;
350350
351351/* *
352352 * Moves a section to a new location.
@@ -358,7 +358,7 @@ NS_ASSUME_NONNULL_BEGIN
358358 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
359359 * before this method is called.
360360 */
361- - (void )moveSection : (NSInteger )section toSection : (NSInteger )newSection ;
361+ - (void )moveSection : (NSInteger )section toSection : (NSInteger )newSection NS_SWIFT_UI_ACTOR ;
362362
363363/* *
364364 * Inserts items at the locations identified by an array of index paths.
@@ -368,7 +368,7 @@ NS_ASSUME_NONNULL_BEGIN
368368 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
369369 * before this method is called.
370370 */
371- - (void )insertItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths ;
371+ - (void )insertItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths NS_SWIFT_UI_ACTOR ;
372372
373373/* *
374374 * Deletes the items specified by an array of index paths.
@@ -378,7 +378,7 @@ NS_ASSUME_NONNULL_BEGIN
378378 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
379379 * before this method is called.
380380 */
381- - (void )deleteItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths ;
381+ - (void )deleteItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths NS_SWIFT_UI_ACTOR ;
382382
383383/* *
384384 * Reloads the specified items.
@@ -388,7 +388,7 @@ NS_ASSUME_NONNULL_BEGIN
388388 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
389389 * before this method is called.
390390 */
391- - (void )reloadItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths ;
391+ - (void )reloadItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths NS_SWIFT_UI_ACTOR ;
392392
393393/* *
394394 * Moves the item at a specified location to a destination location.
@@ -400,7 +400,7 @@ NS_ASSUME_NONNULL_BEGIN
400400 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
401401 * before this method is called.
402402 */
403- - (void )moveItemAtIndexPath : (NSIndexPath *)indexPath toIndexPath : (NSIndexPath *)newIndexPath ;
403+ - (void )moveItemAtIndexPath : (NSIndexPath *)indexPath toIndexPath : (NSIndexPath *)newIndexPath NS_SWIFT_UI_ACTOR ;
404404
405405/* *
406406 * Reload everything from scratch, destroying the working range and all cached nodes.
@@ -409,7 +409,7 @@ NS_ASSUME_NONNULL_BEGIN
409409 * the main thread.
410410 * @warning This method is substantially more expensive than UICollectionView's version.
411411 */
412- - (void )reloadDataWithCompletion : (nullable void (^)(void ))completion;
412+ - (void )reloadDataWithCompletion : (nullable NS_SWIFT_UI_ACTOR void (^)(void ))completion;
413413
414414
415415/* *
@@ -446,7 +446,7 @@ NS_ASSUME_NONNULL_BEGIN
446446 *
447447 * @discussion This method must be called from the main thread.
448448 */
449- - (void )selectItemAtIndexPath : (nullable NSIndexPath *)indexPath animated : (BOOL )animated scrollPosition : (UICollectionViewScrollPosition)scrollPosition ;
449+ - (void )selectItemAtIndexPath : (nullable NSIndexPath *)indexPath animated : (BOOL )animated scrollPosition : (UICollectionViewScrollPosition)scrollPosition NS_SWIFT_UI_ACTOR ;
450450
451451/* *
452452 * Deselects the item at the specified index.
@@ -459,7 +459,7 @@ NS_ASSUME_NONNULL_BEGIN
459459 *
460460 * @discussion This method must be called from the main thread.
461461 */
462- - (void )deselectItemAtIndexPath : (NSIndexPath *)indexPath animated : (BOOL )animated ;
462+ - (void )deselectItemAtIndexPath : (NSIndexPath *)indexPath animated : (BOOL )animated NS_SWIFT_UI_ACTOR ;
463463
464464#pragma mark - Querying Data
465465
@@ -482,7 +482,7 @@ NS_ASSUME_NONNULL_BEGIN
482482 *
483483 * @return an array containing the nodes being displayed on screen. This must be called on the main thread.
484484 */
485- @property (nonatomic , readonly ) NSArray <__kindof ASCellNode *> *visibleNodes;
485+ @property (nonatomic , readonly ) NSArray <__kindof ASCellNode *> *visibleNodes NS_SWIFT_UI_ACTOR ;
486486
487487/* *
488488 * Retrieves the node for the item at the given index path.
@@ -518,7 +518,7 @@ NS_ASSUME_NONNULL_BEGIN
518518 *
519519 * @return an array containing the index paths of all visible items. This must be called on the main thread.
520520 */
521- @property (nonatomic , readonly ) NSArray <NSIndexPath *> *indexPathsForVisibleItems;
521+ @property (nonatomic , readonly ) NSArray <NSIndexPath *> *indexPathsForVisibleItems NS_SWIFT_UI_ACTOR ;
522522
523523/* *
524524 * Retrieve the index path of the item at the given point.
@@ -527,7 +527,7 @@ NS_ASSUME_NONNULL_BEGIN
527527 *
528528 * @return The indexPath for the item at the given point. This must be called on the main thread.
529529 */
530- - (nullable NSIndexPath *)indexPathForItemAtPoint : (CGPoint)point AS_WARN_UNUSED_RESULT;
530+ - (nullable NSIndexPath *)indexPathForItemAtPoint : (CGPoint)point AS_WARN_UNUSED_RESULT NS_SWIFT_UI_ACTOR ;
531531
532532/* *
533533 * Retrieve the cell at the given index path.
@@ -536,7 +536,7 @@ NS_ASSUME_NONNULL_BEGIN
536536 *
537537 * @return The cell for the given index path. This must be called on the main thread.
538538 */
539- - (nullable UICollectionViewCell *)cellForItemAtIndexPath : (NSIndexPath *)indexPath ;
539+ - (nullable UICollectionViewCell *)cellForItemAtIndexPath : (NSIndexPath *)indexPath NS_SWIFT_UI_ACTOR ;
540540
541541/* *
542542 * Retrieves the context object for the given section, as provided by the data source in
@@ -615,7 +615,7 @@ NS_ASSUME_NONNULL_BEGIN
615615 * not implement reuse (it will be called once per item). Unlike UICollectionView's version,
616616 * this method is not called when the item is about to display.
617617 */
618- - (ASCellNode *)collectionNode : (ASCollectionNode *)collectionNode nodeForItemAtIndexPath : (NSIndexPath *)indexPath ;
618+ - (ASCellNode *)collectionNode : (ASCollectionNode *)collectionNode nodeForItemAtIndexPath : (NSIndexPath *)indexPath NS_SWIFT_UI_ACTOR ;
619619
620620/* *
621621 * Asks the data source to provide a node-block to display for the given supplementary element in the collection view.
0 commit comments