ContentView

struct ContentView : View

The main view of the app.

The view displays, depending on the state of the SortCoordinator:

  • either the animation of the sorting being executed, or
  • the timing results of the “real” algorithms being executed.

Tapping the view starts the animation, executing all the supported sorting algorithms. After the animations are done, the same algorithms are again executed without animations nor delays. Execution time is measured and then displayed as each algorithm finishes. After this, user can restart the whole thing again by tapping the screen.

  • Declaration

    Swift

    var body: some View { get }