Picture showing european flag with a broken UK flag beneath - residency in Spain

We came across an official document from the Spanish government (in English and Spanish) that outlines what you need to prove residency in Spain and your rights under the withdrawal agreement. It doesn't go into great detail, just being one page, but you might be interested.