fix: workaround paste crash on iOS 14.x issue
This commit is contained in:
parent
7aed050ded
commit
fd9a253fac
|
@ -13,6 +13,9 @@ extension MetaTextView {
|
||||||
public override func paste(_ sender: Any?) {
|
public override func paste(_ sender: Any?) {
|
||||||
super.paste(sender)
|
super.paste(sender)
|
||||||
|
|
||||||
|
// fix #660
|
||||||
|
// https://github.com/mastodon/mastodon-ios/issues/660
|
||||||
|
if #available(iOS 15.0, *) {
|
||||||
var nextResponder = self.next;
|
var nextResponder = self.next;
|
||||||
|
|
||||||
// Force the event to bubble through ALL responders
|
// Force the event to bubble through ALL responders
|
||||||
|
@ -25,5 +28,6 @@ extension MetaTextView {
|
||||||
}
|
}
|
||||||
nextResponder = nextResponder?.next;
|
nextResponder = nextResponder?.next;
|
||||||
}
|
}
|
||||||
|
} // end if
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue