If you have changed visas whilst in the UK, you will still be able to swap your drivers licence as long as you do so within a 5 year window. If you have been on a youth mobility visa and then been able to extend your stay through another visa, this will not impact your ability to swap your licence.