Skip to content
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

ContentMode For PlaceHolder? #62

Open
valentinjahanmanesh opened this issue Apr 17, 2017 · 2 comments
Open

ContentMode For PlaceHolder? #62

valentinjahanmanesh opened this issue Apr 17, 2017 · 2 comments

Comments

@valentinjahanmanesh
Copy link

hi thanks for this amazing, easy to use slider...
usually a placeholder, is a single image across entire app, so some we should choose it to be a general image, so the size of this image usually is a square like an icon... its good to have a separate contentMode ... because sometimes i use auk for Banners, sometimes as product images and contentMode usually is ScaleToFill or ScaleToFit ... and that small placeholder will so ugly with this contentModes...

@valentinjahanmanesh
Copy link
Author

valentinjahanmanesh commented Apr 17, 2017

  • i change it in my app...
    if settings.placeholderImage != nil {
    placeholderImageView = createAndLayoutImageView(settings)
    placeholderImageView?.contentMode = .center

}

i dont know if it will useful for everyone or not

@evgenyneu evgenyneu changed the title hi, ContentMode For PlaceHolder? ContentMode For PlaceHolder? Apr 17, 2017
@evgenyneu
Copy link
Owner

Hi @FarshadJahanmanesh, thanks for the idea and the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants