Swansea Schools lifted the prestigious Dewar Shield for the ninth time, and the first time since 2010, with a 24-22 victory over Pontypridd Schools in the final at Principality Stadium.