What to do after Brexit: Property purchase in Spain

As a British passport holder, is it a good idea to buy property in Spain now or wait until after Brexit?
I also hold a EU passport.