If you eat a calorie surplus then you will gain weight. If your looking to lose fat you will need to restrict calories. At the end of the day the same rule applies to IF. Calories in vs calories out = weight lose or weight gain. IF is not an "eat all you want diet".