Dansby Swanson hit a tiebreaking two-run homer in the ninth inning, leading the Cubs to a 6-4 victory over the Dodgers on Friday.