Intermittent fasting requires avoiding all food.
When you are supposed to be fasting, you can now have an apple.
The whole point of intermittent fasting is to give your digestive system a break, and lower Insulin Resistance.
Every time you eat something, you produce Insulin.