Ophthalmic nepafenac is used to treat eye pain, redness, and swelling in patients who are recovering from cataract surgery ( ... treat clouding of the lens in the eye). Nepafenac is in a class of medications called nonsteroidal ...