On 26 April 2023, while Raków was en route to their first ever top division title, a week after Papszun confirmed he would be leaving the club at the end of the 2022–23 season, Szwarga was announced as his replacement.
[6] Szwarga's first match as manager came on 11 July 2023, with Raków winning 1–0 over Estonian club Flora in the first qualifying round of the 2023–24 UEFA Champions League,[7] followed by a 2023 Polish Super Cup loss to Legia Warsaw 4–5 on penalties four days later.
[8] In their European campaign, the defending Ekstraklasa champions went on to eliminate Qarabağ[9] and Aris Limassol,[10] before falling short in the play-off round to Danish club Copenhagen, losing 1–2 on aggregate.
Their run in the Polish Cup ended after crashing out of the competition in the quarter-finals against Piast Gliwice, Raków was also unable to hold a top-three position in the table for more than two weeks, despite poor form from potential title rivals.
[17] Hours later, I liga club Arka Gdynia announced he would take over as manager following his exit from Raków, replacing interim head coach Tomasz Grzegorczyk.