I think it was a foul, and Xhaka has once again shown to be utterly brainless in his decision-making. Not sure it should have been a red, however, because I don't think there was a goalscoring opportunity there: both Leno and White would have picked up the ball prior to Jota getting there.