I feel that it depends on the animal. My dogs, cats, and pigs get along, but they're never left unsupervised. Once I'm out of the room where the pigs are, everyone else gets out and the door is closed.
Charlie, my cat, loves to sleep in the pig cage. He prefers the top section of the cage, where the towels are. He also likes to sit on top of the pigloo lol. The pigs never seem to be bothered by him, and Temporary, the white and brown pig, cuddles with Charlie. So I've had luck when it comes to all of my animals getting along, but I wouldn't trust any of them without supervision. Afterall, animals will be animals.