I’ve code in my app to run when the person swipes left on the row of a tableview. Just lately for no cause that I can discern, it won’t compile and offers the error:
Sort of expression is ambiguous with no sort annotation
Right here is the code and an image.
func tableView(
_ tableView: UITableView,
trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath
) -> UISwipeActionsConfiguration? {
let shareAction = UIContextualAction(
model: .regular,
title: "Share"
) {
motion,
view,
carried out in
print("swiped left")
}
}
I’ve tried cleansing the venture in addition to let ShareAction: UIContextAction = … and never discovered something helpful utilizing Google or varied AIs.
Can anybody recommend what may very well be inflicting this?
Thanks for any solutions.