Skip to content

Commit 92a9b76

Browse files
committed
fix: use sidebar list style on Mac Catalyst so developer guide section is collapsible
1 parent 00e5748 commit 92a9b76

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Meshtastic/Views/Settings/HelpAndDocumentation/DocBrowserView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ struct DocBrowserView: View {
127127
}
128128
}
129129
}
130+
// .sidebar is required on Mac Catalyst for Section(isExpanded:)
131+
// collapsible behaviour — .insetGrouped silently drops the toggle.
132+
#if targetEnvironment(macCatalyst)
133+
.listStyle(.sidebar)
134+
#else
130135
.listStyle(.insetGrouped)
136+
#endif
131137
}
132138
}
133139
}

0 commit comments

Comments
 (0)