冗余 @objc 属性在 Swift 代码中显示为灰色。您可以按 &shortcut:ShowIntentionActions; 并选择相应的操作来快速移除它们:

Remove redundant @objc atribute