Double condition to make sure

This commit is contained in:
Lumaa 2024-01-10 17:46:08 +01:00
parent b524188790
commit ddf4e1f1e3

View File

@ -26,7 +26,7 @@ public struct DynamicTextEditor: View {
{ {
_text = text _text = text
_isEmpty = Binding( _isEmpty = Binding(
get: { text.wrappedValue.string.isEmpty }, get: { text.wrappedValue.length <= 0 || text.wrappedValue.string.isEmpty },
set: { _ in } set: { _ in }
) )