It depends on the size of the pig. A mature adult, especially a sow that is gestating or nursing young will do best in a cooler environment. Conversely, young piglets like it much warmer. Pigs might be comfortable and reasonably happy in a wide temperature range, but they need a specific temperature range for optimum health and weight gain in different phases of life. See this study from Penn State for more.