The present invention relates to photocurable siloxane polymers having functional acryl groups, useful in the preparation of intraocular lenses (IOLs). The polymers are siloxane copolymers, wherein the siloxane can be selected from the group consisting of diphenyl siloxane, phenylalkyl siloxane, dialkyl siloxane, and trifluoroalkyl alkyl siloxane. The invention also relates to methods for producing the said siloxane polymers, as well as to producing accommodating lenses in vivo, which means that the lens is formed in the capsular bag of the eye.