Actually the cord is already detach from the uterus of the mother.
It is just long that some part is still in the vaginal canal of the sow even thought the piglet is already outside. But if you will pull it, it will not resist at all.
This long umbilical cord is then cut and you would just leave about 2 inch length of umbilical.