Text input handled on keystroke

This commit is contained in:
Avery Pace 2021-11-09 14:37:00 -05:00
parent 64a9849517
commit baa09e4363

View File

@ -84,6 +84,9 @@ struct TranslatorView: View {
.sheet(item: $selectedPartOfSpeech) { selectedPOS in
PartsOfSpeechView(selectedPartOfSpeech: selectedPOS, partsOfSpeech: tokiDictViewModel.partsOfSpeech)
}
.onChange(of: tokiInput) { newValue in
tokiDictViewModel.filterDictionary(newValue)
}
}
}
}