Sarah Hyland helped Ariel Winter be "confident with her body".

Sarah Hyland

Sarah Hyland

The 19-year-old actress has come under fire multiple times for wearing revealing clothing, but her 'Modern Family' co-star Sarah - who plays her sister Haley on the show - alongside Julia Bowen, who plays their mother Claire, and Sofia Vergara, who plays Gloria, helped her beat the trolls and remain confident.

Sarah, 26, told People magazine: "I like to think we -- me, Julie Bowen and Sofia Vergara -- helped her be confident with her body and herself.

"I mean, she was 11 years old when I met her. I was 18. I tried to be a good role model for her, and a true older sister for her because she's such a sweet little girl."

Meanwhile, Ariel was recently forced to post a note on her Twitter account slamming body shaming critics who tell her she shouldn't be "squeezing" herself into small pairs of shorts.

She wrote: "Pretty annoyed about the focus on the fact that I wear shorts, and the commentary that I'm "squeezing" into them or the idea that it's not okay for me to wear shorts. It's SUMMER. Get over it. It's hot, obviously I'm going to wear minimal clothes. I'm not going to suffer in a turtleneck to please anyone. I'm not a whore because I wear shorts and tank tops. I'm a normal girl. Also, I'm not "squeezing" into anything. My shorts fit me and everything I'm doing is just fine. Please leave young women alone. We're just living our lives. It's really troubling that we even have to deal with this kind of stuff nowadays. Please stop criticizing everything everyone does!!!!! (sic)"

It isn't the first time the star has had to defend her outfit choices either, and the beauty previously said she will continue to wear whatever she wants in spite of the hate comments.

She wrote in a note on Twitter in March: "Why TF does anyone care that I didn't dress casual like everyone else for the panel? Why do I have to be like everyone else? Why can't people just let other people feel good about themselves and do what they want? WEAR WHATEVER YOU WANT PEOPLE! As long as you feel good about yourself that's what matters. I know I did. Don't ever let anyone stifle who you are and how your express yourself. Rant over :) (sic)"