I live in Egypt, & my friend won't swim in the pools in our residential compound because there are signs up specifying appropriate swimwear - no thongs (too revealing) & no burkinis (because the compound wants to promote a 'Westernised' image to attract a particular clientele). This is also often the case in 5* hotel resorts - I stayed in a hotel last year that had little diagrams in its information folders depicting acceptable & unacceptable swimwear.
She is, as it happens, a devout Muslim & believes she should dress modestly - which in her opinion excludes a Western-cut swimsuit. I don't share her opinion but I do know it's her own & not her dh's.
It clarified the chuff out of my thinking: I don't much care for 'modest dress' & what it represents, whether it's a burkini or an American patriarchal community dressing their girls in floor length prairie frocks. But I'd still rather my mate got to join the rest of us for a swim, wearing whatever the fuck she likes.
It does strike me as ironic that she is having her freedom to wear Islamic dress curtailed in a Muslim-majority country, whereas the pool in my local leisure centre in the UK was always full of burkinis, or leggings & t-shirt combos, & no-one turned a hair.