It was actually doing worse than it is now. While data is not reliable due to nobody releasing complete numbers and methodologies changing over the years you can get general idea by looking over this page:
https://www.comichron.com/yearlycomicssales.html
Does it mean that "woke comics" increased the sales? Not really. I'd say main things that helped the market are:
1. Collected editions now are hotter than they were 10-20 years ago. Back then it was almost entirely DC's market, now everyone is trying to play there.
2. Despite all the doom and gloom digital comics had very small impact on comics sold to comic book shops. But digital comics added around 100$ mil to the industry.
Does it mean that everything is great? No, if AT&T decides that comics are not worthwhile then entire industry is likely to collapse since no one is going to be able to fill that 25-30% hole left in the market.
One thing that people often overlook, while looking at the sales charts, is how entire TOP 300 is doing. Often TOP 10 is doing worse than it did X years ago, but when you look at what 300th position sold it often paints completely different picture.