Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

The contributor guide says how a long list's rows stay cheap

Țugui Dragoș08b9e320801e
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bc57b307..1896f9f9 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -167,6 +167,12 @@ read in one sitting.
uses in each. Write new or changed interface text in English, and run `python3 Scripts/sync_localizations.py`
after a Debug build so the catalog lists it. The translations are added before your change is merged; until
then `StringCatalogTests` fails for that text, and only for it. The `peel` tool and PeelCore stay in English.
+- **Rows of a long list stay cheap to build.** A list builds its rows as they scroll into view. A checkbox in a
+ row is `NativeCheckbox` beside the item, with `checkboxTitleLine()` on the first line of its title and
+ `checkboxTitle()` on the title, rather than a checkbox `Toggle` whose label is the row, since SwiftUI asks a
+ `Toggle`'s button for its size each time the row is measured. A button in each row takes `RowButtonStyle`: one
+ with a standard style changes the window's list of focusable views whenever a row scrolls in or out. A row never
+ hides its own separator and is never a `Toggle` itself; the `ForEach` that lists the rows hides the separators.
- **The interface follows Liquid Glass.** The sticker album look belongs to Home, the menu bar panel, and About
only; every other screen reads as macOS (system type, `Form` and `Section`, native controls). Icons are SF
Symbols, and the logo comes only from `Logo/`.