I made a couple of parts to repair the broken canopy supports on my patio swing. These were modeled after the original parts. Both parts are included, but you may only need one or the other. The "outer" part that connects to the canopy frame is usually the part that breaks. I also made the inner part that connects to the swing frame because my swing had blown over several times, and it was cracked.
These are made for an M12x1.75 bolt, which is the size that mine uses. This only matters if you print the inner part, as the other one isn't threaded. Step files and Fusion 360 files are included if you need to modify anything.
Print these on their sides (with the teeth facing the side) for the best strength. The smaller outer part needs no supports, and the larger inner part only needs supports underneath.
Note: In the pictures, the stem of the inner piece has pre-drilled holes. I found that these were placed inconsistently on the originals, so I removed them.