(AP) – “Modern Family” star Sarah Hyland says her skinny appearance lately is due to a medical condition.

The 26-year-old says in a social media post that critics have accused her of promoting anorexia in pictures she’s posted. Without being specific, Hyland says she has “basically been on bed rest for the past few months” and has lost muscle mass. She says her face is swollen from medication that is saving her life.

READ MORE: 'Highway Slingshot Shooter' Fires Ball Bearings at Windows Along San Jose's Guadalupe Freeway

She adds that she strives “to be as healthy as possible” but hasn’t “had the greatest year.”

READ MORE: 3 East Bay School Districts Go All-In on Student Vaccine Mandates

Hyland stars as Lisa Houseman in ABC’s TV movie remake of “Dirty Dancing.”

MORE NEWS: State-of-the-Art Water Purification Plant Helps Silicon Valley Battle Drought
TM and © Copyright 2017 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2017 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten. The Associated Press contributed to this report.