1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-17 11:19:54 +01:00

Merge pull request #717 from mastodon/fix-issue-660

Workaround paste crash on iOS 14.x issue
This commit is contained in:
CMK 2022-12-02 13:40:47 +08:00 committed by GitHub
commit b15ae5e50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,9 @@ extension MetaTextView {
public override func paste(_ sender: Any?) {
super.paste(sender)
// fix #660
// https://github.com/mastodon/mastodon-ios/issues/660
if #available(iOS 15.0, *) {
var nextResponder = self.next;
// Force the event to bubble through ALL responders
@ -25,5 +28,6 @@ extension MetaTextView {
}
nextResponder = nextResponder?.next;
}
} // end if
}
}