Redundant @objc attributes are grayed out in your Swift code. You can quickly remove them by pressing &shortcut:ShowIntentionActions; and selecting the corresponding action: