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

fix(iOS): Inline code to find the webview's scrollView #272

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Aug 16, 2024

Platforms affected

iOS

Motivation and Context

Ref: apache/cordova-ios#1400

Description

Currently this works because of a category extension that adds a scrollView method to every UIView instance, but that causes issues for SwiftUI so we want to remove that extension from cordova-ios.

Since we do need to be able to look up the scrollView in this plugin, we can just define a private local method that does the same thing in a way that doesn't pollute global UIKit classes.

Currently this works because of a category extension that adds a
`scrollView` method to every UIView instance, but that causes issues for
SwiftUI so we want to remove that extension from cordova-ios.

Since we do need to be able to look up the scrollView in this plugin, we
can just define a private local method that does the same thing in a way
that doesn't pollute global UIKit classes.

Ref: apache/cordova-ios#1400
Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dpogue dpogue merged commit 5492147 into apache:master Aug 20, 2024
14 of 15 checks passed
@dpogue dpogue deleted the ios-scrollview branch August 20, 2024 07:25
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.

2 participants