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

Make it possible for Obj-C view controller to implement IndicatorInfoProvider protocol #850

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

Conversation

oduwa
Copy link

@oduwa oduwa commented Dec 29, 2022

In order to display a View Controller (VC) as a child of a Pager controller, the child VC needs to conform to the IndicatorInfoProvider protocol in order to let the pager know what to use as the VC's title in the pager.

However, if a VC is written in Obj-C, it is currently impossible to have it as a child of a pager because the IndicatorInfoProvider protocol isn't made available to Obj-C. In order to make it available, the following minor changes have been made:

  • Added the @objc flag to the protocol
  • Structs don't exist in Obj-C, but the protocol function returns a struct. Refactored its return type to be a Class instead of a Struct.

@oduwa
Copy link
Author

oduwa commented Jan 26, 2023

bump

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.

None yet

1 participant