Can a hidden character make an attack with the Spiritual Weapon spell and still remain hidden?


If my multi-classed Rogue (4)/Warlock (5) casts Spiritual Weapon, and then Hides…

Can he continue to control the Spiritual Weapon on his subsequent turns and remain Hidden? Or does attacking the enemy with the Spiritual Weapon remove him from being Hidden?