The foxes wouldn't touch them I'd say

Very young piglets (under a week old) if they wandered away from mum.........there maybe a slight risk, but it would be a very brave fox that chanced coming face to face with an overprotective sow.
And by the time they're weaner size/weight the fox isn't likely to even consider it.
On a side note, our chickens free range (always have done) and don't get shut in at night, preferring to roost mostly in the rafters of the shed. I'd heard an 'old farmers tale' that foxes won't come onto the property when pigs are around and we have foxes round here (I know, I've seen them in broad daylight) but we haven't lost a single chicken to foxes (badgers yes, but not a fox).
I was speaking to a friend yesterday who also kept chickens and pigs (weaners bought in spring and raised til autumn) for the three years he had pigs his chickens were fine, but the last year he didn't have pigs he had 4 fox attacks. So I reckon there's something in it

Maybe moving the pigs near the chickens for a while will help?
Karen