A former homework in informatics: built a Pythagoras Tree with a recursiv function.
This is a tree for Swift Playgrounds. I'am no official Apple Developer, so you can not download the project from a Apple-Domain, so you have to copy this Code in a pre-built Playground "Forms" (Code in Tree.playgorund/contents.swift
). Alternatively you can download the Zip-file and open it with the 'Documents-App'. Or you can try to download the Playgroundbook…
Thanks to Johann150 for supporting me deeply 😏
You can download Swift Playgrounds (for iPads only) here for free.
The code is commented in german. If you have any qeustions, how the code works, open a new Issue…