Open 0xjorgev opened 6 years ago
Hi, thanks for reporting. This is weird indeed. Honestly, I have no idea why it does not show 3 images. I would try commenting everything except the most important stuff, in order to isolate the problem.
@evgenyneu thanks for your fast response, in order to avoid any other kind of issues i'll try to isolate my class with the AUK implementation and test it in a empty project, this really took me a bunch of hours to figure this out!, i'll get back to you with this "clean" project to see it the weird behavior persists
@evgenyneu as promised, here is a simple project that shows the weird behavior, thanks in advance for your time, i really love this project AUK-Bug.zip
Thanks for that code, @jorgevmendoza. I think the problem was to do with the layout of the views.
I've commented the function setupConstraints
and wrote a new one called layoutViews
. This fixed the issue with images.
I've also commented the call to self.scroll?.contentInsetAdjustmentBehavior = .always
, since it made the scroll view scroll vertically a little bit, which was not expected.
Let me know if it helps. :)
Hi there!, first of all thanks for this amazing software component, i'd used moa in the past and Auk it's a very elegant solution for image sliders for the iOS platform!.
My issue goes like this:
I am using Auk to add an image slider as a tableView Header, in a project that doesn't use Storyboards, for that porpoise i had created a separated class with all the needed setup:
` import UIKit import moa import Auk
class CategoryNecessitiesTableViewHeader: UIView, UIScrollViewDelegate {
} `
The thing is if i send one or two images the slider works perfect, it shows loads the images, shows the pager controller and the world is a happy place, how ever if i send an array o 3 or more images it simply shows nothing in the screen, Thanks before hand!!