damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 86be185d2f05a559cada68a096f3f9ea47ad1be1
parent 380f51a9ce85a3b30080a4a66d01aa05a1dd90cb
Author: Suhail Saqan <suhail.saqan@gmail.com>
Date:   Mon, 26 Dec 2022 16:29:21 -0600

Added search placeholder and larger cancel button

Closes: #153
Changelog-Changed: Added search placeholder and larger cancel button

Diffstat:
Mdamus/Views/SearchHomeView.swift | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/damus/Views/SearchHomeView.swift b/damus/Views/SearchHomeView.swift @@ -16,12 +16,13 @@ struct SearchHomeView: View { var SearchInput: some View { ZStack(alignment: .leading) { HStack{ - TextField("", text: $search) + TextField("Search...", text: $search) .padding(8) .padding(.leading, 35) .autocorrectionDisabled(true) .textInputAutocapitalization(.never) - Label("", systemImage: "xmark.square") + Text("Cancel") + .foregroundColor(.blue) .padding(EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 10.0)) .opacity((search == "") ? 0.0 : 1.0) .onTapGesture {