Skip to content

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.

1 participant