According to this article, it seems that it is required. Furthermore, before you gave the gift, you would have to verify that the recipient would be using it on Shabbat.
If it is le-tzorech Shabbos, i.e. necessary for Shabbos use. This is
actually a broad heter, as many gifts you may want to give, e.g. wine,
liqueur, chocolate, cake, etc can definitely be construed as
le-tzorech Shabbos. The weakness here is that they are not actually
necessary for Shabbos use, as your hosts likely planned sufficient
food and drink without taking into account the gift that you will
bring. So it may be useful for Shabbos, but is it necessary for
In other words, it seems that the responsibility is more on you prior to giving the gift, but the recipient also must follow up with the action of using it. Don't give a bottle of wine that you think the recipient won't use. Better, call before Shabbat and verify if they will use it.
(In this context "tzorech" is translated as "necessary". It's a loose translation, as it seems that they mean using it even if the recipient feels that, technically, they don't "need" it. E.g. - even if the recipient says, "It was unnecessary for you to bring it", but they use it anyway, that's fine. In other words, the act of using it makes it "needed".)
The article suggests work-arounds, but I don't think they are relevant to answering the question.
See @AvrohomYitzchok's comment, below. I can't access the link, now, but I feel his answer is even stronger than mine, and I recommend that he posts his comment as an answer, so you can give him the points and / or bounty!