Skip to content

Commit c516e7c

Browse files
authored
Search bar scrolls with the list closes #1818 (#1855)
1 parent 2e4bec8 commit c516e7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CodeEdit/Features/Settings/SettingsView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,17 @@ struct SettingsView: View {
144144

145145
var body: some View {
146146
NavigationSplitView {
147+
List { }
148+
.searchable(text: $searchText, placement: .sidebar, prompt: "Search")
149+
.scrollDisabled(true)
150+
.frame(height: 30)
147151
List(selection: $selectedPage) {
148152
Section {
149153
ForEach(Self.pages) { pageAndSettings in
150154
results(pageAndSettings.page, pageAndSettings.settings)
151155
}
152156
}
153157
}
154-
.searchable(text: $searchText, placement: .sidebar, prompt: "Search")
155158
.navigationSplitViewColumnWidth(215)
156159
} detail: {
157160
Group {

0 commit comments

Comments
 (0)