File tree Expand file tree Collapse file tree 2 files changed +1
-25
lines changed
ios/CapacitorCordova/CapacitorCordova/Classes/Public Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 2424#import " CDVAvailability.h"
2525#import < WebKit/WebKit.h>
2626
27- @interface UIView (org_apache_cordova_UIView_Extension)
28-
29- @property (nonatomic , weak ) UIScrollView* scrollView;
30-
31- @end
32-
3327extern NSString * const CDVPageDidLoadNotification;
3428extern NSString * const CDVPluginHandleOpenURLNotification;
3529extern NSString * const CDVPluginHandleOpenURLWithAppSourceAndAnnotationNotification;
@@ -54,7 +48,7 @@ extern NSString* const CDVViewWillTransitionToSizeNotification;
5448@interface CDVPlugin : NSObject {}
5549
5650- (instancetype )initWithWebViewEngine : (WKWebView *)theWebViewEngine ;
57- @property (nonatomic , weak ) UIView * webView;
51+ @property (nonatomic , weak ) WKWebView * webView;
5852@property (nonatomic , weak ) WKWebView * webViewEngine;
5953@property (nonatomic , strong ) NSString * className;
6054
Original file line number Diff line number Diff line change @@ -18,24 +18,6 @@ Licensed to the Apache Software Foundation (ASF) under one
1818 */
1919
2020#import " CDVPlugin.h"
21- #include < objc/message.h>
22-
23- @implementation UIView (org_apache_cordova_UIView_Extension)
24-
25- @dynamic scrollView;
26-
27- - (UIScrollView*)scrollView
28- {
29- SEL scrollViewSelector = NSSelectorFromString (@" scrollView" );
30-
31- if ([self respondsToSelector: scrollViewSelector]) {
32- return ((id (*)(id , SEL ))objc_msgSend)(self, scrollViewSelector);
33- }
34-
35- return nil ;
36- }
37-
38- @end
3921
4022NSString * const CDVPageDidLoadNotification = @" CDVPageDidLoadNotification" ;
4123NSString * const CDVPluginHandleOpenURLNotification = @" CDVPluginHandleOpenURLNotification" ;
You can’t perform that action at this time.
0 commit comments