uicontextmenuinteraction

Weird animation when deleting item from UICollectionView while UIContextMenu is shown

╄→尐↘猪︶ㄣ 提交于 2020-05-13 05:06:10
问题 I'm using UIContextMenuInteraction to show a context menu for UICollectionView as follows: func collectiovnView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { return UIContextMenuConfiguration(identifier: nil, previewProvider: nil, actionProvider: { _ in let deleteAction = UIAction(title: "Delete", image: UIImage(systemName: "trash"), attributes: .destructive) { _ in self.deleteItem(at: indexPath) }

Weird animation when deleting item from UICollectionView while UIContextMenu is shown

僤鯓⒐⒋嵵緔 提交于 2020-05-13 05:04:54
问题 I'm using UIContextMenuInteraction to show a context menu for UICollectionView as follows: func collectiovnView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { return UIContextMenuConfiguration(identifier: nil, previewProvider: nil, actionProvider: { _ in let deleteAction = UIAction(title: "Delete", image: UIImage(systemName: "trash"), attributes: .destructive) { _ in self.deleteItem(at: indexPath) }

Weird animation when deleting item from UICollectionView while UIContextMenu is shown

我的梦境 提交于 2020-05-13 05:04:08
问题 I'm using UIContextMenuInteraction to show a context menu for UICollectionView as follows: func collectiovnView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { return UIContextMenuConfiguration(identifier: nil, previewProvider: nil, actionProvider: { _ in let deleteAction = UIAction(title: "Delete", image: UIImage(systemName: "trash"), attributes: .destructive) { _ in self.deleteItem(at: indexPath) }

Weird animation when deleting item from UICollectionView while UIContextMenu is shown

我与影子孤独终老i 提交于 2020-05-13 05:02:31
问题 I'm using UIContextMenuInteraction to show a context menu for UICollectionView as follows: func collectiovnView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { return UIContextMenuConfiguration(identifier: nil, previewProvider: nil, actionProvider: { _ in let deleteAction = UIAction(title: "Delete", image: UIImage(systemName: "trash"), attributes: .destructive) { _ in self.deleteItem(at: indexPath) }