Cataract surgery is generally safe for people with ICDs and pacemakers. The procedure does not typically involve electrical equipment that would interfere with a heart device.
However, if electrocautery (an electrical current used to stop bleeding) is needed during the procedure, the surgeon and anaesthetist should be informed about your device beforehand so that appropriate precautions can be taken. Always carry your device ID card to any medical or surgical appointment and ensure the clinical team are aware of your ICD.