Text input handled on keystroke
This commit is contained in:
parent
64a9849517
commit
baa09e4363
@ -84,6 +84,9 @@ struct TranslatorView: View {
|
|||||||
.sheet(item: $selectedPartOfSpeech) { selectedPOS in
|
.sheet(item: $selectedPartOfSpeech) { selectedPOS in
|
||||||
PartsOfSpeechView(selectedPartOfSpeech: selectedPOS, partsOfSpeech: tokiDictViewModel.partsOfSpeech)
|
PartsOfSpeechView(selectedPartOfSpeech: selectedPOS, partsOfSpeech: tokiDictViewModel.partsOfSpeech)
|
||||||
}
|
}
|
||||||
|
.onChange(of: tokiInput) { newValue in
|
||||||
|
tokiDictViewModel.filterDictionary(newValue)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user