HELP! How to help baby poop easier?!

My daughter just recently turned a year old and we have completely broken her of the bottle and taken her off formula and switched to a sippy cup with whole milk. I’m really careful about not letting her have too much( she usually has about 18-20 ounces a day) but it seems to be making it hard for her to poop. She’s been a good once a day go-er since she was born, but now she is passing hard balls and it seems like it hurts her to poop. Any advice? Anyone else go through this? I’ve tried apple juice but she just isn’t that into it. She will just want water if not milk. I feel bad for her!