I förlängningens sista minut avgjorde Ukrainas Artem Dovbyk och skickade Sverige ut ur turneringen.
Sundsvallaren Emil Forsberg briljerade igen – men Sverige föll efter förlängningsdrama
För Ukraina väntar England i kvartsfinal.
BBC:
Artem Dovbyk scored in added time in extra-time as Ukraine edged out 10-man Sweden at Hampden to set up a Euro 2020 quarter-final with England. Oleksandr Zinchenko smashed Ukraine in front with a powerful drive but a deflected shot from Emil Forsberg levelled matters before half-time. Sweden lost Marcus Danielson to a red card in extra time after a VAR check. And, with penalties looming, Dovbyk - one of 12 substitutes used - headed a dramatic winner from close-range. Ukraine had crept through from the group phase with three points and a negative goal difference, while Sweden topped their section with seven points, ahead of Spain.