-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Right button is clipped if UITableView has section index titles #8
Comments
…dex titles. I have added an optional offset to change the swipe buttons position. Relative to the cell border position. Default value: 0. For example it can be used to avoid cropped buttons when sectionIndexTitlesForTableView is used in the UITableView
Hi subhashdaga, I can't find a clean way to autodetect and automatically fix this issue but I have implemented a more generic feature that can be used to fix it. I have added a offset property to the swipeSettings class. Default value is 0, but if you set a value that is equal to the indexes view width it's done. I have tested it in the transitions demo project and it works ok with any transition. |
Faced the same issue. Took me some time to find about the offset property. The offset property can be used like this to solve the issue with the section index titles:
There's no API to get the width of the section title index in iOS. However, the contentView of UITableViewCell is adjusted automatically not to overlap with the section title index. So you get the difference between the cell width and cell content width, then set it as the offset. |
Thanks. This works nicely. |
Right most button is clipped if you override the following UITableViewDataSource delegate -
Any suggestions how it can be fixed? Thanks!
The text was updated successfully, but these errors were encountered: