Quitting smoking

Has anyone else had to quit smoking when they found out they were pregnant? And how did you do it? I'm really struggling