Skip to content

Commit

Permalink
reordered filtered list count
Browse files Browse the repository at this point in the history
  • Loading branch information
moyoteg committed Oct 4, 2021
1 parent 5311558 commit c1816c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/SwiftUIComponents/FilteredList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ public struct FilteredList<Element: StringFilterable,
return VStack {
HStack {
Image(systemName: "magnifyingglass")
Text("(\(filter.isEmpty ? "\(list.count)":"\(filteredList.count)"))")
.font(.system(.caption))
TextField("filter", text: binding.animation(.spring()))
.padding([.top, .bottom], 8)
.modifier(Modifier.ClearButton(text: binding))
.scaledToFill()
.minimumScaleFactor(0.5)
.lineLimit(1)
Spacer()
Text("(\(filter.isEmpty ? "\(list.count)":"\(filteredList.count)"))")
.font(.system(.caption))
}
.padding([.leading, .trailing], 16)
.background(
Expand Down

0 comments on commit c1816c1

Please sign in to comment.