You may not have to say goodbye to foods such as whole grains, fruits, and vegetables because you have UC. Besides its nutritional benefits, fiber soaks up extra water in your system and can firm stools.
Even if a high-fiber food seems to worsen your UC symptoms during a flare-up, it may be OK when the flare is over. The only way to know if a particular food is a problem for you is to remove it from your diet and then gradually start to eat it again.