Advertisement
Larme

Untitled

Jan 23rd, 2023
1,833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UIContextualActionHandler actionHandler; // = ...
  2. UICollectionLayoutListConfiguration *listConfig = [[UICollectionLayoutListConfiguration alloc] initWithAppearance: UICollectionLayoutListAppearanceInsetGrouped];
  3. [listConfig setTrailingSwipeActionsConfigurationProvider:^UISwipeActionsConfiguration* (NSIndexPath *indexPath) {
  4.     UIContextualAction *action = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleNormal
  5.                                                                          title:@"Done!"
  6.                                                                        handler:actionHandler];
  7.     return [UISwipeActionsConfiguration configurationWithActions:@[action]];
  8. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement