From fa5f3cd6474ac045af96ce307add67e1a96e99b2 Mon Sep 17 00:00:00 2001 From: ChristopherTotty Date: Tue, 22 Feb 2022 14:32:27 -0600 Subject: [PATCH] Reset web view height and origin after share is closed --- share/ios/Plugin/SharePlugin.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/ios/Plugin/SharePlugin.swift b/share/ios/Plugin/SharePlugin.swift index ff9950ab9..ef5ed2db3 100644 --- a/share/ios/Plugin/SharePlugin.swift +++ b/share/ios/Plugin/SharePlugin.swift @@ -36,6 +36,10 @@ public class SharePlugin: CAPPlugin { } actionController.completionWithItemsHandler = { (activityType, completed, _ returnedItems, activityError) in + + self?.bridge?.webView?.frame.size.height = UIScreen.main.bounds.size.height; + self?.bridge?.webView?.frame.origin.y = 0; + if activityError != nil { call.reject("Error sharing item", nil, activityError) return