You’ll want to be careful running pigs with cattle. Sometimes the pigs will get “trained” to enjoy fresh warm manure. Then they will start biting the vulva of cows laying down. The figure out the cows will jump up and the pig gets a fresh hot meal. Pigs are very smart animals.
In terms of commercial production (i.e. pigs destined for commercial slaughter) many states allow the feeding of food waste to pigs, many states do not allow it. Federal regulations (which generally aren’t as strict as state regs) require restaurant food waste to be cooked before fed to swine. Just about all states which allow food waste for swine, also require licensing.
In terms of pigs raised for private consumption (i.e. yard hogs to feed the family) most of the regulations do not apply. However, there are a few states which do not allow even kitchen scraps to be fed to swine for personal consumption (Kentucky, Louisiana, Michigan and Virginia)