2. Prompting for Residency Rules

Act as an international tax expert. I am an individual who has spent significant time in both the United Kingdom and Spain this year, and both countries might consider me a tax resident.
Please explain the tie-breaker rules for individual tax residency under the UK-Spain Double Taxation Treaty.
Which article specifically addresses this?
text Prompt via Promptoogle