Swift example of Game of Life