Intermittent fasting is not about what you eat. It is about when you eat. The most common version is called 16:8. You fast for 16 hours and eat all your meals within an 8 hour window.
For example, stop eating at 8pm and do not eat again until 12pm the next day. That is 16 hours of fasting. Water, black coffee, and plain tea are allowed during the fasting period.
No food is banned. You just eat all of it within the window.