Long ultraviolet (UV) exposure, both from natural sources like the sunlight or artificial forms, such as from tanning beds, can harm the eyes and the vision in various ways. Some of the conditions include photokeratitis or the swelling of the cornea, cataract, macular degeneration and, rarely, ocular melanoma.