Intermittent fasting while pregnant??

Google has helped very minimally on this subject. I am 21 weeks pregnant and I know that my baby is very healthy. I just forgot to ask my OB at our last appointment about IF. Have any of you mamas done IF during your pregnancy and or while breastfeeding?? I have gained 16 pounds and I am plus size and I wanna help minimize the gain.