No worries
-
Create a new file in the project called
Helpers.swift. Copy/Paste that code into the file. -
Open SurfaceView.swift
-
Examine the
bodyproperty ofstruct SurfaceView. You’ll see that the top level item is aVStack. -
Delete the 3 Informational text fields. They don’t need to be there anymore.
-
Instantiate
Helpers, injecting the mesh and the selection. Yourbodyshould now start like this.var body: some View { VStack { // 1 Helpers(mesh: mesh, selection: selection) TextField("Breathe…", text: .....

My version has a white background because I’m painting the backing rect with Rectangle().fill(Color(UIColor.systemBackground))