-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please remove org_apache_cordova_UIView_Extension because it isn't necessary since iOS 8. #1399
Comments
I'd like to remove this (and have a PR to do so) but unfortunately this is still used by a large number of 3rd party plugins. The problem is that the This category extension was originally added to smooth over the transition from In an ideal world, plugins wouldn't need to care about the internal implementation details of the web view or touch its scroll view directly, but sadly most Cordova plugins exist due to the lack of an ideal world. 😞 So removing this entirely is definitely not feasible in the next major version. I can mark it as deprecated, but that still leaves plugins without a good solution (other than copy-pasting this implementation wherever they need it), and doesn't solve the problem of this interfering with Swift view subclasses. @hbordersTwitch Any suggestions for how we might be able to improve this situation for Swift without breaking compatibility with the existing ecosystem? |
This **removes** the API from Swift to solve the immediate problem in apacheGH-1399 but leaves it available and deprecated in Objective-C due to use in 3rd party plugins. (There are only 2 Swift plugins that use this API as far as I can tell, and neither of them have very high usage or ongoing maintenance.)
This **removes** the API from Swift to solve the immediate problem in apache#1399 but leaves it available and deprecated in Objective-C due to use in 3rd party plugins. (There are only 2 Swift plugins that use this API as far as I can tell, and neither of them have very high usage or ongoing maintenance.) Closes apacheGH-1399.
Feature Request
Cordova contains
org_apache_cordova_UIView_Extension
inCDVPlugin.h
:with an implementation in
CDVPlugin.m
:It appears Cordova only uses the
scrollView
property onWKWebView
instances, andWKWebView
has exposed ascrollView
property since iOS8, and Cordova's iOS Platform Guide says iOS 11 is the minimum version required for devices to run Cordova. Thus, this extension and artificial property is unnecessary.Motivation Behind Feature
Apps integrating Cordova with Swift codebases will not compile if Swift classes feature
scrollView
members inUIView
subclasses with visibility less thanpublic
. Integrating Cordova would be easier without this extension.Alternatives or Workarounds
Integrators can manually delete the
@interface
from the public header file to avoid compilation issues.The text was updated successfully, but these errors were encountered: