How not to crave sweets?

So im on a diet , and im ok with everything
Butttt , i can't stop thinking about sweets, and if i saw any sugary thing, i can't not eat it, i would eat it even if im on a diet , i realllly dono what to do. I can't stop this , its ruining everything
How not to crave sweets?
Post Opinion