as seen in smart news and other news apps
I want to have a horizontal scrolling tab menu
The following sites have attempted to implement using the PageMenuKit library:
Implementation of PageMenuKit, a user interface for news apps - Qiita
However, if the number of tabs is narrower than the width of the screen, there is a problem that the tab menu is aligned in the
I want to align this to the left.(Please refer to the attached image.)
I don't know where to touch the sauce.
Could you teach me?
↓ I want to align it to the left like this.
swift cocoapods
Other Q&A sites Answer seem to have solved this problem, so I will reprint it as it is.
It is not available in this library and cannot be done.
If you want to do so, rewrite the part of the library that inherits the UIPageViewControllerDataSource.
Now, the tabs are implemented to last indefinitely, so if you implement them so that they don't happen, you can make them left-aligned.
Or you can do it with these light libraries.
https://github.com/EndouMari/TabPageViewController
© 2024 OneMinuteCode. All rights reserved.