Last year I mentioned a nice collection of design patterns implemented in Swift.
Here’s a project from Wayne Bishop that provides a number of examples of many different data structures implemented in Swift, and also a number of commonly seen algorithms.
Here’s a list of the algorithms within Swift Structures as stated within the readme:
Binary Search Trees
Stacks & Queues
Dijkstra’s Shortest Path
Heaps & Heapsort Operations
You can find SwiftStructures on Github here.
A great collection of common data structures and algorithms if you’re looking for an implementation or just learning Swift.