Modern Family star Sarah Hyland has shared a racy bikini-clad snap with fans on Instagram — in an effort to give herself a little fitness inspiration.

The actress, 28, posted a throwback pic of herself in a very brief gold bikini top, her hair in curls, accompanied by an explanation it's not a current photo, news.com.au reports.

"I'm putting this #tbt out there to remind myself that I can make it to the gym. Lately I've been making excuses because of the constant pain from health issues. But no more," she writes.

"A woman's body is a miraculous thing and we can do anything we set our minds to. #summer #bodygoals here I come."

Advertisement

Hyland has been very open about her health struggles since finding fame — the sitcom star has had a lifelong battle with kidney dysplasia and in 2012 received a kidney transplant from her father.

But toward the end of 2016 the kidney started to fail, Hyland received a second transplant from her brother Ian in September 2017.

Her health woes, which now include endometriosis, led to depression.

"I was very depressed. When a family member gives you a second chance at life, and it fails, it almost feels like it's your fault. It's not. But it does," the actress told Self magazine.

"For a long time, I was contemplating suicide, because I didn't want to fail my little brother like I failed my dad."

Just three days before her second kidney transplant, Hyland met boyfriend radio DJ and former Bachelorette contestant, Wells Adams, who has been by her side since.

"He's seen me at my worst," Hyland explained. "I think that's why I feel the most beautiful in his eyes, because he still finds me beautiful after seeing all that."

"It was a really intimate start to a relationship to have to go through those hurdles at the very, very, very beginning when you're just even getting to know a person," the actress added. "Also, falling in love with someone before you can really be intimate. I did not believe that that was a thing, but it is."

Advertisement

And in a post last year, the star revealed her surprising preference when it comes to exercising.

"So I have a break from filming right now before some other things, and does anybody else like working out naked in front of mirrors so you hate yourself and work harder?" she asked her fans in an Instagram story.

WHERE TO GET HELP:

If you are worried about your or someone else's mental health, the best place to get help is your GP or local mental health provider. However, if you or someone else is in danger or endangering others, call police immediately on 111.

OR IF YOU NEED TO TALK TO SOMEONE ELSE:

0800 543 354 (0800 LIFELINE) or free text 4357 (HELP) (available 24/7)
https://www.lifeline.org.nz/services/suicide-crisis-helpline
YOUTHLINE: 0800 376 633
• NEED TO TALK? Free call or text 1737 (available 24/7)
KIDSLINE: 0800 543 754 (available 24/7)
WHATSUP: 0800 942 8787 (1pm to 11pm)
• DEPRESSION HELPLINE: 0800 111 757 or TEXT 4202