If an object swings hanging from a string, the string bends with the movement and the deformation of the string dissipates energy, and this process can be regarded as one type of friction.
On the other hand, since the object swings submerged in a fluid (in this case, air), the movement of the object across the fluid creates air drag, which is another type of friction that will have an effect on the motion.