forked from shadowfacts/Tusker
Fix visiblity context menu in main text view accessory not updating
This commit is contained in:
parent
39c8162931
commit
3da7aacb35
|
@ -139,7 +139,10 @@ struct MainComposeWrappedTextView: UIViewRepresentable {
|
|||
|
||||
func updateUIView(_ uiView: UITextView, context: Context) {
|
||||
uiView.text = text
|
||||
visibilityButton?.image = UIImage(systemName: visibility.imageName)
|
||||
if let visibilityButton = visibilityButton {
|
||||
visibilityButton.image = UIImage(systemName: visibility.imageName)
|
||||
updateVisibilityMenu(visibilityButton)
|
||||
}
|
||||
context.coordinator.text = $text
|
||||
context.coordinator.didChange = textDidChange
|
||||
context.coordinator.uiState = uiState
|
||||
|
|
Loading…
Reference in New Issue