GithubHelp home page GithubHelp logo

Swift 4 support about zkcarousel HOT 7 CLOSED

zacharykhan avatar zacharykhan commented on August 10, 2024
Swift 4 support

from zkcarousel.

Comments (7)

mahi008 avatar mahi008 commented on August 10, 2024 1

Hey @ZacharyKhan Great šŸ™, once again thanks for this lib.

from zkcarousel.

ZacharyKhan avatar ZacharyKhan commented on August 10, 2024

EDIT: Hey @mahi008, I'll do those updates tonight and close this issue once it's done.

from zkcarousel.

ZacharyKhan avatar ZacharyKhan commented on August 10, 2024

Give it a try now, should be fixed in 0.1.8. Just run pod update and make sure you're on the latest version šŸ‘

from zkcarousel.

mahi008 avatar mahi008 commented on August 10, 2024

works great ! one last question though @ZacharyKhan , nothing to do with the issue but how can I add equal margins around the ZKCarousel? It looks nearly impossible, I have tried UIEdgeInsets on collection view but nothing helps :(

from zkcarousel.

ZacharyKhan avatar ZacharyKhan commented on August 10, 2024

how can I add equal margins around the ZKCarousel? It looks nearly impossible, I have tried UIEdgeInsets on collection view but nothing helps :(

@mahi008 Iā€™m confused, which views exactly are you trying to add margins to?

Are you trying to have a margin between the top/bottom/right/left of the ZKCarousel and the edge of the screen?

from zkcarousel.

mahi008 avatar mahi008 commented on August 10, 2024

Here's my story board, the blue rectangle is my ZKCarousel and it is embeded in a tableHeaderView.
I want to add white space around the blue rectangle(my carousel) but I can't figure it out :(, your help is much appreciated @ZacharyKhan

from zkcarousel.

ZacharyKhan avatar ZacharyKhan commented on August 10, 2024

@mahi008 Are you adding ZKCarousel programatically or with storyboards? This seems like it could be solved by adding constraints to the top/left/bottom/right of the ZKCarousel and adding a margin that way.

You shouldn't set the UIEdgeInsets on ZKCarousel.

EDIT: What you can also do is access the collectionView property of ZKCarousel and set the UIEdgeInsets on the collectionView.

from zkcarousel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.