You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
584 B

import SwiftUI
struct SearchUserView: View {
@EnvironmentObject var viewModel: SearchUserViewModel
@State var text = "ra1028"
var body: some View {
NavigationView {
VStack {
SearchUserBar(text: $text) {
self.viewModel.search(name: self.text)
}
List(viewModel.users) { user in
SearchUserRow(user: user)
.onTapGesture { print(user) }
}
}
.navigationBarTitle(Text("Users"))
}
}
}