Skip to content

Commit 0c7bcd3

Browse files
authored
fix(ios): Remove Cordova UIView extension (#8189)
1 parent dce1204 commit 0c7bcd3

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
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-
3327
extern NSString* const CDVPageDidLoadNotification;
3428
extern NSString* const CDVPluginHandleOpenURLNotification;
3529
extern 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

ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.m

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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

4022
NSString* const CDVPageDidLoadNotification = @"CDVPageDidLoadNotification";
4123
NSString* const CDVPluginHandleOpenURLNotification = @"CDVPluginHandleOpenURLNotification";

0 commit comments

Comments
 (0)