One may not use anything that is directly connected to a tree. For example, one may not use a ladder that is leaning on a tree on Shabbos. However, if the item is attached through something else, such as a peg, the decree does not exist. Therefore, if one has a tree-swing it should not be connected directly to the tree. Rather, one should attach a peg to the tree and the rope to the peg.