nicklockwood / SwipeView

SwipeView is a class designed to simplify the implementation of horizontal, paged scrolling views on iOS. It is based on a UIScrollView, but adds convenient functionality such as a UITableView-style dataSource/delegate interface for loading views dynamically, and efficient view loading, unloading and recycling.
Other
2.65k stars 413 forks source link

Display partial next element in TableViewCell #221

Open romain25 opened 4 years ago

romain25 commented 4 years ago

Hello, I have an old project with this library and I don't have time to integrate UICollectionView for this moment.

I have SwipeView in TableCellView amd everything is OK. I can't display next partial element. In example project this is ok.

In my cell, I have this for configuration

self.swipeView.pagingEnabled = YES;
self.swipeView.itemsPerPage = 1;
self.swipeView.delegate = self;
self.swipeView.dataSource = self;
self.swipeView.truncateFinalPage = YES;

I copy and paste same like example. Only one element. It's a constraint problem ?

Have a nice day.

Romain

buvtopcc commented 4 years ago

You can try this replaced scheme, leave me message if you meet any issues. https://github.com/buvtopcc/CCPagerView

My project also use this for long times, but follow-up maintain is very low frequent and have some issues like yours. I decide realize banner, and give a simple api, and more easy to use.