TagKit icon indicating copy to clipboard operation
TagKit copied to clipboard

Why not storing the text of TagTextField locally?

Open Vithanco opened this issue 9 months ago • 1 comments

I wonder why it has to be provided from outside and not internally?

@State private var theText: String = ""

If needed, then we can add

    private var theTextBinding: Binding<String>{
        return Binding<String>(
            get: { return self.theText.slugified()},
            set: { self.theText = $0.slugified()}
        )
    }

Woudn't that be easier?

Vithanco avatar May 12 '24 17:05 Vithanco