To test if you need to use an apostrophe you should be able to use it is or it has in your sentence. If you can’t, you should use its.
- It is a lovely day.
It’s a lovely day. A leopard cannot change it is spots.
A leopard cannot change its spots.- It has been good seeing you again after all these years.
It’s been good seeing you again after all these years.