Skip to content

Commit

Permalink
refactor!: Remove scrollView category extension on UIView
Browse files Browse the repository at this point in the history
Closes #1399.
  • Loading branch information
dpogue committed Feb 21, 2024
1 parent 92017bb commit f7d069d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
18 changes: 0 additions & 18 deletions CordovaLib/Classes/Public/CDVPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@ Licensed to the Apache Software Foundation (ASF) under one
#import "CDVPlugin+Private.h"
#import <Cordova/CDVPlugin+Resources.h>
#import <Cordova/CDVViewController.h>
#include <objc/message.h>

@implementation UIView (org_apache_cordova_UIView_Extension)

@dynamic scrollView;

- (UIScrollView*)scrollView
{
SEL scrollViewSelector = NSSelectorFromString(@"scrollView");

if ([self respondsToSelector:scrollViewSelector]) {
return ((id (*)(id, SEL))objc_msgSend)(self, scrollViewSelector);
}

return nil;
}

@end

NSString* const CDVPageDidLoadNotification = @"CDVPageDidLoadNotification";
NSString* const CDVPluginHandleOpenURLNotification = @"CDVPluginHandleOpenURLNotification";
Expand Down
6 changes: 0 additions & 6 deletions CordovaLib/include/Cordova/CDVPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
#import <Cordova/CDVCommandDelegate.h>
#import <Cordova/CDVWebViewEngineProtocol.h>

@interface UIView (org_apache_cordova_UIView_Extension)

@property (nonatomic, weak) UIScrollView* scrollView;

@end

extern NSString* const CDVPageDidLoadNotification;
extern NSString* const CDVPluginHandleOpenURLNotification;
extern NSString* const CDVPluginHandleOpenURLWithAppSourceAndAnnotationNotification;
Expand Down

0 comments on commit f7d069d

Please sign in to comment.