Although the U.K. does not have different state taxes where your main home decides where you pay taxes. The term “Domiciled” is used so if you are an Expat and live in Spain you pay Spanish taxes, as part of that is you cannot live in the UK for more than half the year. There are very complex and strict rules and the revenue are very tenacious overseeing expat tax accounts.
An airline pilot UK citizen could “domicile” himself in HK pay tax there but could not visit U.K. for more than 183 days a year, but if he had a wife and kids in the UK there would be problems.