When I paste text into a TextEditor, a memory leak occurs.

Pasting either plain or styled text into any TextEditor results in a memory leak.

import SwiftUI

struct EditorView: View {
    @State private var inputText: String = ""
    
    var body: some View {
        VStack{
            TextEditor(text: $inputText)
                .frame(minHeight: 150)
        }
    }
}

Any interaction with a text field is causing a memory leak issue.

https://imgur.com/a/fSb8vFT

When I paste text into a TextEditor, a memory leak occurs.
 
 
Q