Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
- let Pin = UIContextualAction(style: .normal, title: "Pin") { (contextualAction, view, boolValue) in }
- let swipeActions = UISwipeActionsConfiguration(actions: [Pin])
- Pin.backgroundColor = .orange
- return swipeActions
- }
Add Comment
Please, Sign In to add comment