Swing joints are a flexible way to install sprinkler heads. The swing pipe length can be anywhere from 3 inches on up. There isn’t really any limit to the distance of the swing pipe as long you don’t exceed the velocity of the pipe, especially for long runs (I often use swing pipe as laterals for supplying individual sprinkler heads.). The maximum recommended flow for swing pipe / Funny pipe is 3 GPM, but you can exceed this rating for short distances. For sprinkler heads that exceed this velocity, I recommend having a swing joint that is no longer than 18 inches.
Pop-up with Swing Joint
Rotor with Swing Joint