It seems to fit better in the past tense.
"It was nice hearing from you"
"It was nice talking to you"
"It was nice spending time with my folks over the holidays"
In the present, it sounds better to me as "to (infinitive)"
"It's nice to hear from you"
"It's nice to talk to you"
"It's nice to spend some time with my folks over the holidays"
"It was nice hearing from you"
"It was nice talking to you"
"It was nice spending time with my folks over the holidays"
In the present, it sounds better to me as "to (infinitive)"
"It's nice to hear from you"
"It's nice to talk to you"
"It's nice to spend some time with my folks over the holidays"