I've run across the phrase "attempt swimming across the river" .
This verb has the structure "verb + infinitive", if it is followed by another verb.
Why "swimming" ?
Pope of the Dictionary.com Forum
It sounds very unnatural to me. However "to try swimming across the river" does not.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.