The Scot came on during the half-time break before netting for the Swans in a friendly win over Llanelli.
The striker was expected to be out for up to three months following an ankle injury.
But the 27-year-old, who linked up well with Stephen Dobbie, hopes his performance will now help him stake a claim in Brendan Rodgers' first team