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 rule about row separators says which rows it means

Țugui Dragoș69f10baac71e
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d5b28b78..54c70a1c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -210,8 +210,9 @@ read in one sitting.
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.
+ with a standard style changes the window's list of focusable views whenever a row scrolls in or out. A row a
+ `ForEach` repeats never hides its own separator and is never a `Toggle` itself; the `ForEach` hides the
+ separators. A row that stands alone, such as a header or a notice, may hide its own, which costs nothing.
- **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/`.
diff --git a/Peel/Views/RemovalRow.swift b/Peel/Views/RemovalRow.swift
index 3c11865e..eba8351b 100644
--- a/Peel/Views/RemovalRow.swift
+++ b/Peel/Views/RemovalRow.swift
@@ -292,9 +292,9 @@ struct RemovalRow: View {
extension View {
/// Lays out a row of a removal table, with a divider above every row but the first in place of the list's
- /// own separators. The `ForEach` that lists the rows hides those separators, never the row itself: a row
- /// that hides its own separator, or that is itself a `Toggle`, makes `List` build far more rows than are
- /// on screen as soon as it appears.
+ /// own separators. The `ForEach` that lists the rows hides those separators, never the row itself: a repeated
+ /// row that hides its own separator, or that is itself a `Toggle`, makes `List` build far more rows than are
+ /// on screen as soon as it appears. A row that stands alone, such as the column headers, costs nothing.
func tableRow(isFirst: Bool) -> some View {
padding(.vertical, 4)
.overlay(alignment: .top) {