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

Horizontal padding between pages #197

Closed
bizibizi opened this issue May 8, 2018 · 4 comments
Closed

Horizontal padding between pages #197

bizibizi opened this issue May 8, 2018 · 4 comments

Comments

@bizibizi
Copy link

bizibizi commented May 8, 2018

Is it possible to setup this property?
Like this one https://stackoverflow.com/questions/20694679/horizontal-padding-between-uipageviewcontroller-child-view-controllers

@rechsteiner
Copy link
Owner

We're using EMPageViewController as a replacement for UIPageViewController and that's not something that's supported. I'm working on moving the menu items into a standalone component, which means you could roll you own implementation of the page view controller that supports that.

@wow-such-amazing
Copy link

I'm also wondering if it is possible to achieve such behaviour

Thanks for the library 👍

@rechsteiner
Copy link
Owner

@crabman448 It's not possible with the current version, but as soon as version 2.0 (#243) is done you should be able to use any custom type of page view controller 🙂

@rechsteiner
Copy link
Owner

Version 2.0 is now released and makes it possible to use the PagingMenuView as a standalone component. This should allow you to use it with any page view controller and not just EMPageViewController. You need to implement the PagingMenuDelegate delegate methods and update your page view controller based on that. When user scrolls in your page view controller (or table view for that matter), you need to call the following methods on the PagingMenuView to update it:

/// Call this method when the parent view controller viewDidAppear method is called.
func viewAppeared()
/// Call this method when the parent view controller viewWillTransitionToSize method is called.
func transitionSize()
/// Call this method when the user scrolls in your page view controller.
func contentScrolled(progress: CGFloat)
/// Call this method when the user has finished scrolling.
func contentFinishedScrolling()

Let me know if you have any issues with getting this working. I will look into setting up an example project for this in the future.

@rechsteiner rechsteiner mentioned this issue Mar 12, 2020
4 tasks
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

No branches or pull requests

3 participants