Thank you for your query
The swelling in the eyelid can be caused by a minor trauma. If there is no discharge from the eyes and not painful it is unlikely to be an infection. Such swellings subside in 24-48 hours. You can apply some cold
compresses over the eyelid and it should subside faster. Hope that helps.
God bless you