Sadly it happens on the beaches at Barcelona city center, but not so much in nudist areas outside the city like Filipines beach. It is also quite common to ask whoever is near you in the beach to take a look to your belongings while you go for a swim. People are usually very nice and it is also a way to break the ice. Have fun in Barcelona!!