Gabriel Jesus scored a stoppage-time winner as Manchester City fought off a Swansea City comeback to win 2-1.