It seems from the history that you had a injury
to the eye and swelling of the eye lid following injury is because of collection of blood in the layers of the eyelids called as black eye or ecchymosis
of eyelids. The treatment of the condition is by cold compress and oral analgesic
drugs for relief of pain.
Sensitive to light following injury is probably because of corneal epithelial defect or traumatic uveitis
. This requires further evaluation and examination of the eye by eye doctor and treatment accordingly.