fortmarek / SwipeViewController

SwipeViewController is a Swift modification of RKSwipeBetweenViewControllers - navigate between pages / ViewControllers
MIT License
655 stars 46 forks source link

Put the left swipe button close to the left side of the navigation view, and so does the right side of the navigation view. #21

Closed ghost closed 7 years ago

ghost commented 7 years ago

I set three swipe buttons on my project. Since I don't need any navigation bar button item, do you know if there is any way to put the left swipe button close to the left side of the navigation view, and so does the right swipe button close to the right side of the navigation view ?

Thank you so much for the sharing!

fortmarek commented 7 years ago

I am sorry that I got to you so late. Anyway, it should be quite simple, just write this code in SwipeViewController subclass:

equalSpaces = false
setButtonsOffset(0, bottomOffset: 0)