Hi Tom,
If you meet the criteria to be tax resident in the UK for the whole tax year, you would need to consider split year treatment.
If it does apply, you would only declare your UK income in the tax year and any foreign income while resident in the UK.
If split year treatment does not apply, you would declare your world wide income for the whole tax year and claim a foreign tax credit of up to 100% of the foreign tax paid.
The statutory residence guidance and tests at RDR3, will help you determine your UK tax residence position.
RDR3: Statutory Residence Test (SRT) notest
Thank you.