if you want to use a .22 on hogs, i'd reccomend .22WMR over .223Win, and i'd insist that you insist upon <50yd headshots.
and that you do some googling on where to place the headshot.
and that you do a lot of target practice from standing position.
personally, from experience, i'd never carry anything underpowered for whitetail deer on a hog hunt. i carry .44mag in a sidearm, .30 caliber rifle main gun for hogs.
(granted, i've also caught with dogs and dispatched with a good ol' knife between the ribs) but that tends to get you bruised up a bit.
if i was for hogs with a .22 centerfire, it'd be a .22-250 with a sniped headshot.