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

feat(ios): Makes CapacitorBridge, WebViewAssetHandler, and WebViewDelegationHandler open classes, along with several of their methods #7009

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

Steven0351
Copy link
Member

No description provided.

WebViewDelegationHandler open classes, along with several of their
methods
fileprivate(set) var webViewLoadingState = WebViewLoadingState.unloaded

private let handlerName = "bridge"

public init(bridge: CapacitorBridge? = nil) {
Copy link
Member Author

@Steven0351 Steven0351 Oct 20, 2023

Choose a reason for hiding this comment

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

This initializer never would have respected the bridge passed in because it is set later in the CapacitorBridge initializer

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

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

Changes look good, I've fixed some merge conflicts it had after the zoom feature PR.

But do we want to make all those classes and methods open @dallastjames?

@dallastjames
Copy link
Collaborator

Based on my swift understanding, it just makes subclassing and overriding these classes simpler for consumers and isn't really exposing any new public API, so I think we're good to do this. Also seems like Portals probably could really make use of this change.

@markemer markemer merged commit 40d62cb into main Oct 30, 2023
6 checks passed
@markemer markemer deleted the open-classes branch October 30, 2023 15:16
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.

5 participants