I'm trying to add contextMenu into NavigationLink, using this code:
NavigationLink(recent.name, destination: TextEditing(isNew: false, fileName: recent.name)).contextMenu{Button("Rename") {
// code
}
}
, but i receive swift compiler error: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions