Migrate PPColorPreferenceObject to Swift.