If you have Indefinite Leave to Remain but have lived outside the United Kingdom for 2 years, you will need to apply for a Returning Resident Visa. A visa officer will assess the strength of your ties to the United Kingdom
A Returning Resident Visa enables ILR holders to return to the UK if they have been away for 2 years. If you have been granted