I'm a dual citizen of Brazil and the UK and live in Spain with a 5-year TIE, which I applied for pre-Brexit via my UK passport (as if I'd sought residency here via my Brazilian passport, I would've needed a job offer etc etc)

My question is, would I be able to apply for a Spanish citizenship after 2 years as is the case with Iberoamerican citizens due to the fact that I am a Brazilian citizen? Or would the fact that my TIE was applied for with my UK passport?

I know this is quite a specific situation but if anyone has any information or experience I'd appreciate it hugely! Thanks!