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): Add CDVScreenOrientationDelegate protocol on CAPBridgeViewController #5070

Merged
merged 2 commits into from
Sep 24, 2021

Conversation

jcesarmobile
Copy link
Member

Some Cordova plugins, such as cordova-plugin-inappbrowser rely on CDVScreenOrientationDelegate to determine its supported orientations.
CAPBridgeViewController.swift can't conform CDVScreenOrientationDelegate directly because the CDVScreenOrientationDelegate protocol Objective-C names conflict with UIViewController names in Swift.

This PR adds an Objective-C category for CAPBridgeViewController that allows to conform CDVScreenOrientationDelegate, and since it's Objective-C it doesn't conflict.

Copy link
Contributor

@dtarnawsky dtarnawsky left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants