How to align tabs to the left using the PageMenuKit library

Asked 2 years ago, Updated 2 years ago, 94 views


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?

Enter a description of the image here

↓ I want to align it to the left like this.

Enter a description of the image here

swift cocoapods

2022-09-30 15:37

1 Answers

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


2022-09-30 15:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.