The Messenger of Allah ﷺ used to kiss while fasting and embrace while fasting, but he had the greatest control over his desires.
حدثنا مسدد حدثنا أبو معاوية عن الأعمش عن إبراهيم عن الأسود وعلقمة
كان رسول الله ﷺ يقبل وهو صائم ويباشر وهو صائم ولكنه كان أملك لإربه
Muslim narrated it in the Book of Fasting, Chapter on the explanation that qibla during fasting is not forbidden for one whose desire is not stirred, hadith no. 1106/65, from the hadith of Abu Muawiya Adarir. Bukhari narrated it in the Book of Fasting, Chapter on physical contact for one who is fasting, hadith no. 1927, from the hadith of Ibrahim Nakhai through the same chain.