This is a simple implementation and interactive demo of the Bresenham-line-algorithm in swift.
In order to draw a line, click inside the window and drag a line.
For better visibility the default pixelsize is changed to 6, but can be changed in the BresenhamView.