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

Allow implementors to inject and interact with custom scripts #2

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

vladpcog
Copy link

@vladpcog vladpcog commented Aug 7, 2023

Summary

  • Created WebInteractionDelegate protocol, with default empty implementations.
  • Added delegate logic inside DriveController.
  • Created ScriptInjectable protocol, to which implementing viewControllers or class types can conform and then register their own custom scripts.
  • Added public methods registerInjectableScript and unregisterScriptInjectable for implementors to call when wanting to add or delete existing custom scripts.

⚠️ I removed the testTarget part from the Package.swift, because I could not build the package in Xcode 14.1, as there was no testTarget in the package.

vladpcog and others added 9 commits August 2, 2023 10:18
* Removed inexistent test target for successful build.

* Fix for crashed cause when alert is presented outside of view hierarchy.

* Return early and also call the completionHandlers if the view is not in hierarchy.
* Removed inexistent test target for successful build.

* Added WebInteractionDelegate to DriveController.
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.

1 participant