Finished the conversion of platform_swaying to strict mode.