Turkey exit the competition after a third straight defeat while the Swiss hope to progress to the last 16 as one of the best third-placed teams after finishing level with second-placed Wales on four points but behind on goal difference.
Italy beat Wales 1-0 in the other group match after the Welsh were reduced to 10 men in the second half.
Haris Seferovic opened the scoring for Switzerland in the sixth minute when he took a pass from Steven Zuber before pivoting and driving a left-footed shot into the net from just outside the penalty area.
Switzerland doubled their lead in the 26th minute after Zuber picked up a blocked shot and slipped it to Shaqiri who took a touch and then unleashed a vicious long-range shot that gave the sprawling keeper no chance.
He doubled his tally in the 68th minute when he swept home a cross on the counter, minutes after Irfan Can Kahveci had pulled a goal back for Turkey.
Register for free to continue reading
Registration is a free and easy way to support our truly independent journalism
By registering, you will also enjoy limited access to Premium articles, exclusive newsletters, commenting, and virtual events with our leading journalists
Already have an account? sign in
Join our new commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies