Skip to content
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

refactor!: Remove scrollView category extension on UIView #1400

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Feb 21, 2024

🚨 BREAKING API CHANGE!
This should be tested with all the core plugins, just in case any of them are relying on this API existing.

Platforms affected

iOS

Motivation and Context

As mentioned in #1399, this API was added as a compatibility shim at the time we supported both UIWebView and WKWebView, when WKWebView did not expose a public scrollView property. That property was made available in iOS 8, and this extension now risks causing problems due to being applied globally to all UIView subclasses.

Closes #1399.

Description

Remove the category extension to expose a scrollView property on all UIView object instances.

Testing

...

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)

@dpogue dpogue added this to the 8.0.0 milestone Feb 21, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (92017bb) 78.25% compared to head (f7d069d) 78.25%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1400   +/-   ##
=======================================
  Coverage   78.25%   78.25%           
=======================================
  Files          15       15           
  Lines        1789     1789           
=======================================
  Hits         1400     1400           
  Misses        389      389           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dpogue dpogue marked this pull request as ready for review February 27, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please remove org_apache_cordova_UIView_Extension because it isn't necessary since iOS 8.
3 participants