How can I use the searchable feature for my row data in SwiftUI?

I have data in row like  Text(data.user) and I want to use searchable for it, I can use search bar, bat I want to use filter for user.

   Text(data.user)
                  .searchable(text: $searchText, placement: .navigationBarDrawer)

like here, tere is some example for filter, but how can I use it for my data. Any idea?

.onChange(of: searchText) { searchText in
 
    if !searchText.isEmpty {
        articles = sampleArticles.filter { $0.title.contains(searchText) }
    } else {
        articles = sampleArticles
    }
}

Please show the complete code which shows your data. It is very hard to show something under the fragment of code.

  HStack{
         
                Text(data.user)
                  .searchable(text: $searchText, placement: .navigationBarDrawer)
                  .font(.caption)
                  .foregroundColor(.black)
             
       }

model:

struct Recent: Identifiable {
  var id = UUID().uuidString
  var user: String
  
}

let data= [

  Recent(user: "skysoft1"),
  Recent(user: "skysoft2"),
  Recent(user: "skysoft3"),

]

@OOP, I show below

How can I use the searchable feature for my row data in SwiftUI?
 
 
Q