The Swans remain unbeaten after five games and a point clear of second place.
Lankshear, a £10m summer signing from Tottenham, scored the only goal of the game in the 61st minute.
More from us
Did you know you can manage your profile, and explore all of the available newsletters from Ireland Live within your account.