SwiftUI List reuse row content

I noticed that List doesn’t reuse content when scrolling. Is it correct behaviour?

I created a wrapper on UILabel and expected List to re use UILabel while scrolling.

Code Block swift
struct ContentView: View {
    let items = 0...50
    var body: some View {
        List(items, id: \.self) { item in
            AttributedText(text: "\(item)")
        }
    }
}
struct AttributedText: UIViewRepresentable, Equatable {
    let text: String
    func makeUIView(context: Context) -> UILabel {
        print(#function, text)
        return UILabel()
    }
    func updateUIView(_ label: UILabel, context: Context) {
        print(#function, text)
        label.text = text
    }
}




SwiftUI List reuse row content
 
 
Q