@@ -226,7 +226,7 @@ NS_ASSUME_NONNULL_BEGIN
226226 *
227227 * This method must be called on the main thread.
228228 */
229- - (void )scrollToItemAtIndexPath : (NSIndexPath *)indexPath atScrollPosition : (UICollectionViewScrollPosition)scrollPosition animated : (BOOL )animated ;
229+ - (void )scrollToItemAtIndexPath : (NSIndexPath *)indexPath atScrollPosition : (UICollectionViewScrollPosition)scrollPosition animated : (BOOL )animated NS_SWIFT_UI_ACTOR ;
230230
231231/* *
232232 * Determines collection node's current scroll direction. Supports 2-axis collection nodes.
@@ -266,7 +266,7 @@ NS_ASSUME_NONNULL_BEGIN
266266 * Boolean parameter that contains the value YES if all of the related animations completed successfully or
267267 * NO if they were interrupted. This parameter may be nil. If supplied, the block is run on the main thread.
268268 */
269- - (void )performBatchAnimated : (BOOL )animated updates : (nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable void (^)(BOOL finished))completion;
269+ - (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 ;
270270
271271/* *
272272 * Perform a batch of updates asynchronously, optionally disabling all animations in the batch. This method must be called from the main thread.
@@ -277,7 +277,7 @@ NS_ASSUME_NONNULL_BEGIN
277277 * Boolean parameter that contains the value YES if all of the related animations completed successfully or
278278 * NO if they were interrupted. This parameter may be nil. If supplied, the block is run on the main thread.
279279 */
280- - (void )performBatchUpdates:(nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable void (^)(BOOL finished))completion;
280+ - (void )performBatchUpdates:(nullable AS_NOESCAPE void (^)(void ))updates completion:(nullable void (^)(BOOL finished))completion NS_SWIFT_UI_ACTOR ;
281281
282282/* *
283283 * Returns YES if the ASCollectionNode is still processing changes from performBatchUpdates:.
@@ -306,7 +306,7 @@ NS_ASSUME_NONNULL_BEGIN
306306 *
307307 * Calling -waitUntilAllUpdatesAreProcessed is one way to flush any pending update completion blocks.
308308 */
309- - (void )onDidFinishProcessingUpdates:(void (^)(void ))didFinishProcessingUpdates;
309+ - (void )onDidFinishProcessingUpdates:(NS_SWIFT_UI_ACTOR void (^)(void ))didFinishProcessingUpdates;
310310
311311/* *
312312 * 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.
@@ -321,7 +321,7 @@ NS_ASSUME_NONNULL_BEGIN
321321 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
322322 * before this method is called.
323323 */
324- - (void )insertSections : (NSIndexSet *)sections ;
324+ - (void )insertSections : (NSIndexSet *)sections NS_SWIFT_UI_ACTOR ;
325325
326326/* *
327327 * Deletes one or more sections.
@@ -331,7 +331,7 @@ NS_ASSUME_NONNULL_BEGIN
331331 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
332332 * before this method is called.
333333 */
334- - (void )deleteSections : (NSIndexSet *)sections ;
334+ - (void )deleteSections : (NSIndexSet *)sections NS_SWIFT_UI_ACTOR ;
335335
336336/* *
337337 * Reloads the specified sections.
@@ -341,7 +341,7 @@ NS_ASSUME_NONNULL_BEGIN
341341 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
342342 * before this method is called.
343343 */
344- - (void )reloadSections : (NSIndexSet *)sections ;
344+ - (void )reloadSections : (NSIndexSet *)sections NS_SWIFT_UI_ACTOR ;
345345
346346/* *
347347 * Moves a section to a new location.
@@ -353,7 +353,7 @@ NS_ASSUME_NONNULL_BEGIN
353353 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
354354 * before this method is called.
355355 */
356- - (void )moveSection : (NSInteger )section toSection : (NSInteger )newSection ;
356+ - (void )moveSection : (NSInteger )section toSection : (NSInteger )newSection NS_SWIFT_UI_ACTOR ;
357357
358358/* *
359359 * Inserts items at the locations identified by an array of index paths.
@@ -363,7 +363,7 @@ NS_ASSUME_NONNULL_BEGIN
363363 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
364364 * before this method is called.
365365 */
366- - (void )insertItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths ;
366+ - (void )insertItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths NS_SWIFT_UI_ACTOR ;
367367
368368/* *
369369 * Deletes the items specified by an array of index paths.
@@ -373,7 +373,7 @@ NS_ASSUME_NONNULL_BEGIN
373373 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
374374 * before this method is called.
375375 */
376- - (void )deleteItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths ;
376+ - (void )deleteItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths NS_SWIFT_UI_ACTOR ;
377377
378378/* *
379379 * Reloads the specified items.
@@ -383,7 +383,7 @@ NS_ASSUME_NONNULL_BEGIN
383383 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
384384 * before this method is called.
385385 */
386- - (void )reloadItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths ;
386+ - (void )reloadItemsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths NS_SWIFT_UI_ACTOR ;
387387
388388/* *
389389 * Moves the item at a specified location to a destination location.
@@ -395,7 +395,7 @@ NS_ASSUME_NONNULL_BEGIN
395395 * @discussion This method must be called from the main thread. The data source must be updated to reflect the changes
396396 * before this method is called.
397397 */
398- - (void )moveItemAtIndexPath : (NSIndexPath *)indexPath toIndexPath : (NSIndexPath *)newIndexPath ;
398+ - (void )moveItemAtIndexPath : (NSIndexPath *)indexPath toIndexPath : (NSIndexPath *)newIndexPath NS_SWIFT_UI_ACTOR ;
399399
400400/* *
401401 * Reload everything from scratch, destroying the working range and all cached nodes.
@@ -404,7 +404,7 @@ NS_ASSUME_NONNULL_BEGIN
404404 * the main thread.
405405 * @warning This method is substantially more expensive than UICollectionView's version.
406406 */
407- - (void )reloadDataWithCompletion : (nullable void (^)(void ))completion;
407+ - (void )reloadDataWithCompletion : (nullable NS_SWIFT_UI_ACTOR void (^)(void ))completion;
408408
409409
410410/* *
@@ -441,7 +441,7 @@ NS_ASSUME_NONNULL_BEGIN
441441 *
442442 * @discussion This method must be called from the main thread.
443443 */
444- - (void )selectItemAtIndexPath : (nullable NSIndexPath *)indexPath animated : (BOOL )animated scrollPosition : (UICollectionViewScrollPosition)scrollPosition ;
444+ - (void )selectItemAtIndexPath : (nullable NSIndexPath *)indexPath animated : (BOOL )animated scrollPosition : (UICollectionViewScrollPosition)scrollPosition NS_SWIFT_UI_ACTOR ;
445445
446446/* *
447447 * Deselects the item at the specified index.
@@ -454,7 +454,7 @@ NS_ASSUME_NONNULL_BEGIN
454454 *
455455 * @discussion This method must be called from the main thread.
456456 */
457- - (void )deselectItemAtIndexPath : (NSIndexPath *)indexPath animated : (BOOL )animated ;
457+ - (void )deselectItemAtIndexPath : (NSIndexPath *)indexPath animated : (BOOL )animated NS_SWIFT_UI_ACTOR ;
458458
459459#pragma mark - Querying Data
460460
@@ -477,7 +477,7 @@ NS_ASSUME_NONNULL_BEGIN
477477 *
478478 * @return an array containing the nodes being displayed on screen. This must be called on the main thread.
479479 */
480- @property (nonatomic , readonly ) NSArray <__kindof ASCellNode *> *visibleNodes;
480+ @property (nonatomic , readonly ) NSArray <__kindof ASCellNode *> *visibleNodes NS_SWIFT_UI_ACTOR ;
481481
482482/* *
483483 * Retrieves the node for the item at the given index path.
@@ -513,7 +513,7 @@ NS_ASSUME_NONNULL_BEGIN
513513 *
514514 * @return an array containing the index paths of all visible items. This must be called on the main thread.
515515 */
516- @property (nonatomic , readonly ) NSArray <NSIndexPath *> *indexPathsForVisibleItems;
516+ @property (nonatomic , readonly ) NSArray <NSIndexPath *> *indexPathsForVisibleItems NS_SWIFT_UI_ACTOR ;
517517
518518/* *
519519 * Retrieve the index path of the item at the given point.
@@ -522,7 +522,7 @@ NS_ASSUME_NONNULL_BEGIN
522522 *
523523 * @return The indexPath for the item at the given point. This must be called on the main thread.
524524 */
525- - (nullable NSIndexPath *)indexPathForItemAtPoint : (CGPoint)point AS_WARN_UNUSED_RESULT;
525+ - (nullable NSIndexPath *)indexPathForItemAtPoint : (CGPoint)point AS_WARN_UNUSED_RESULT NS_SWIFT_UI_ACTOR ;
526526
527527/* *
528528 * Retrieve the cell at the given index path.
@@ -531,7 +531,7 @@ NS_ASSUME_NONNULL_BEGIN
531531 *
532532 * @return The cell for the given index path. This must be called on the main thread.
533533 */
534- - (nullable UICollectionViewCell *)cellForItemAtIndexPath : (NSIndexPath *)indexPath ;
534+ - (nullable UICollectionViewCell *)cellForItemAtIndexPath : (NSIndexPath *)indexPath NS_SWIFT_UI_ACTOR ;
535535
536536/* *
537537 * Retrieves the context object for the given section, as provided by the data source in
@@ -610,7 +610,7 @@ NS_ASSUME_NONNULL_BEGIN
610610 * not implement reuse (it will be called once per item). Unlike UICollectionView's version,
611611 * this method is not called when the item is about to display.
612612 */
613- - (ASCellNode *)collectionNode : (ASCollectionNode *)collectionNode nodeForItemAtIndexPath : (NSIndexPath *)indexPath ;
613+ - (ASCellNode *)collectionNode : (ASCollectionNode *)collectionNode nodeForItemAtIndexPath : (NSIndexPath *)indexPath NS_SWIFT_UI_ACTOR ;
614614
615615/* *
616616 * Asks the data source to provide a node-block to display for the given supplementary element in the collection view.
0 commit comments