To me, both structures are grammatically identical. It's the participial phrase which functions as a modifier, or qualifier. They both modify the subjects of their respective sentences.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.