Hi,
You will need to review the statutory residence guidance at
RDR3 and take the statutory residence tests, to determine your tax residency.
You may also need to review the guidance for split year treatment.
If you are UK resisdent for tax purposes for the whole tax year, you should look at split year treatment to find out what you should declare.
If you are not tax resident for the whole tax year, you only declare your UK and world-wide income from the date your arrived in the UK.
A tax return is required to claim split year treatment, world-wide income and non residency.
Thank you.