What would you do?

My boyfriend is currently battling depression, and because of this he has been super distant with me. Not calling me as much or answering as much as he used to. I tried to plan dates that would relax him a little but he doesn’t seem to interested. The other night I called him almost a million times, I thought something happened to him. Only to get a message in the morning with him apologizing saying he wasn’t feeling to well and just needed some space and is sorry for not letting me know. I’m trying to be understanding of his depression but I feel like he checked out of our relationship.