Skip to content

Commit 5a23924

Browse files
Improved Corner Radius for selection UI
1 parent a1d3ee3 commit 5a23924

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/DropdownTextField/DropdownTextField.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public struct SearchableMenu: View {
219219
}
220220
.padding(.vertical, 4)
221221
.background(index == 0 && !searchText.isEmpty ? accentColor : Color.clear)
222+
.cornerRadius(8)
222223
}
223224
}
224225
let trimmedSearch = searchText.trimmingCharacters(in: .whitespacesAndNewlines)
@@ -247,6 +248,7 @@ public struct SearchableMenu: View {
247248
}
248249
.padding(.vertical, 4)
249250
.background(accentColor)
251+
.cornerRadius(8)
250252
}
251253
} else if !addNew && searchText != "" && filteredOptions.isEmpty {
252254
Text(noMatchText)

0 commit comments

Comments
 (0)