Skip to content

Commit

Permalink
remove micro image
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy-Holovnia committed Apr 15, 2022
1 parent ed2d87e commit 8244964
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
27 changes: 10 additions & 17 deletions o-fish-ios/Views/Components/Picker/SearchBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,7 @@ struct SearchBarView: View {
onCommit: onCommit)
.font(.body)

if searchText.isEmpty {
Button(action: {
//TODO: use microphone to input search string
print("Microphone button tapped")
}) {
Image(systemName: "mic.fill")
}
.alert(isPresented: $showingAlert) {
Alert(title: Text("Error"), message: Text("\(errorText)"), dismissButton: .default(Text("Ok")))
}
} else {
if !searchText.isEmpty {
Button(action: {
self.searchText = ""
self.clickedDelete()
Expand All @@ -55,12 +45,15 @@ struct SearchBarView: View {
}
}
}
.padding(EdgeInsets(top: Dimension.inset, leading: Dimension.bottomInset, bottom: Dimension.inset, trailing: Dimension.inset))
.frame(height: Dimension.heightTextField)
.foregroundColor(.secondary)
.background(Color.oSearchBar)
.cornerRadius(Dimension.cornerRadius)
.padding([.horizontal, .top], Dimension.padding)
.alert(isPresented: $showingAlert) {
Alert(title: Text("Error"), message: Text("\(errorText)"), dismissButton: .default(Text("Ok")))
}
.padding(EdgeInsets(top: Dimension.inset, leading: Dimension.bottomInset, bottom: Dimension.inset, trailing: Dimension.inset))
.frame(height: Dimension.heightTextField)
.foregroundColor(.secondary)
.background(Color.oSearchBar)
.cornerRadius(Dimension.cornerRadius)
.padding([.horizontal, .top], Dimension.padding)

Divider()
.frame(height: 1.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct PreboardingView: View {

VStack {
searchBar

if showingAddVessel {
NavigationLink(destination: ReportNavigationRootView(report: self.emptyReport, rootIsActive: $rootIsActive)) {
VStack(spacing: Dimension.noSpacing) {
Expand All @@ -61,7 +61,7 @@ struct PreboardingView: View {
}
.opacity(state == .loading ? 0.0 : 1.0)
}

stateView()
Spacer()
}
Expand Down

0 comments on commit 8244964

Please sign in to comment.