I bought this excellent book written by Tariq Rashid in German. The title in German is «Neuronale Netze selbst programmieren». The sample code in the book is written in Python. There exists an implementation for Python on the macOS. But the standard language on macOS is Swift. So I wrote an implementation in Swift.