I line dry whenever I can, which is almost never now that we live in an apartment. I cannot hang laundry outside on our tiny balcony. It is not allowed in any event (I know, I know but in reality it's not going to change). In summer I hide a few drying bits close to the wall, but I am always worried they will blow away.
In winter it rains, a lot. We get rain blowing onto our balcony.
Using a dryer is pretty much the default. I dry delicates etc in our second bathroom where we have a laundry hanging thingy attached to the wall over the tub.
I am grateful our electricity is hydro electric and therefore very non CO2 producing, or very low. If everyone here stopped using a clothes dryer it would have little or no impact on emissions.
Line drying is a luxury I just don't have any more. I do miss it, a lot.
Ironically, one of the justifications we are given for our city being bulldozed and then covered in high rises is "ecodensity". Perhaps I am becoming cynical in my old age, but really? A 33 story tower with no real outdoor spaces and constant lights/elevators/hvac is better than lower density more neighbourhood oriented housing?
Sorry that was a bit off topic, but I felt that I needed to explain given several comments about not line drying.