Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIContextualActionHandler actionHandler; // = ...
- UICollectionLayoutListConfiguration *listConfig = [[UICollectionLayoutListConfiguration alloc] initWithAppearance: UICollectionLayoutListAppearanceInsetGrouped];
- [listConfig setTrailingSwipeActionsConfigurationProvider:^UISwipeActionsConfiguration* (NSIndexPath *indexPath) {
- UIContextualAction *action = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleNormal
- title:@"Done!"
- handler:actionHandler];
- return [UISwipeActionsConfiguration configurationWithActions:@[action]];
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement