Due to the distance【原因状语】
(between the glasses and the lens) 【定语,修饰distance】
when swimming away from the crowd 【when从句,当……时候,看作省略you are】
从以上分析可以看出,这句话中心部分是短语Due to the distance,本句话主干只有原因状语(视具体语境而定,也可能是其他成分),是个句子片段,不是完整的一句话。从句的主语+be动词省略了,主句本身不完整,不是省略了主语+be动词。