Closed mrtokii closed 4 years ago
shouldBeginMultipleSelection, didBeginMultipleSelection
shouldBeginMultipleSelection
didBeginMultipleSelection
showContextMenu
Example usage:
if #available(iOS 13.0, *) { tableRow.on(.showContextMenu) { options -> UIContextMenuConfiguration? in UIContextMenuConfiguration(identifier: nil, previewProvider: nil) { _ in let key = TableKitUserInfoKeys.ContextMenuInvokePoint let point = options.userInfo?[key] as? CGPoint ?? CGPoint() let action = UIAction(title: "\(point.x):\(point.y)", handler: { _ in }) return UIMenu(title: "Menu title", children: [action]) } } }
Looks like a solution for #58
@mrtokii Hey, nice, thank you!
Bumped pod version to 2.11.0
Support for iOS 13
Added two-finger cell selection actions
shouldBeginMultipleSelection
,didBeginMultipleSelection
Added action for displaying context menu
showContextMenu
Example usage:
Looks like a solution for #58