Add an empty view when a tagged user isnt found

Changelog-Added: Show a custom view when tagged user isn't found
This commit is contained in:
ericholguin
2023-04-03 17:07:22 -04:00
committed by William Casarin
parent 8fe8611527
commit 1701dbdfb9
3 changed files with 51 additions and 5 deletions

View File

@@ -0,0 +1,37 @@
//
// EmptyUserSearchView.swift
// damus
//
// Created by eric on 4/3/23.
//
//
// EmptyUserSearchView.swift
// damus
//
// Created by eric on 4/3/23.
//
import SwiftUI
struct EmptyUserSearchView: View {
var body: some View {
VStack {
Image(systemName: "person.fill.questionmark")
.font(.system(size: 35))
.padding()
Text("Could not find the user you're looking for", comment: "Indicates that there are no users found.")
.multilineTextAlignment(.center)
.font(.callout.weight(.medium))
}
.foregroundColor(.gray)
.padding()
}
}
struct EmptyUserSearchView_Previews: PreviewProvider {
static var previews: some View {
EmptyUserSearchView()
}
}