GithubHelp home page GithubHelp logo

PaginationView auto height about swiftuix HOT 9 CLOSED

swiftuix avatar swiftuix commented on May 2, 2024
PaginationView auto height

from swiftuix.

Comments (9)

welove avatar welove commented on May 2, 2024 1

Perfect :) Congratulations on the project. Its awesome! 👏

from swiftuix.

vmanot avatar vmanot commented on May 2, 2024

@welove implementing auto-play is out of scope for this project, you can easily achieve this via a Timer and PaginationView.currentPageIndex. Automatic resizing is something that has been requested quite a bit, I'll see if I can squeeze it in sometime in the near future :)

from swiftuix.

welove avatar welove commented on May 2, 2024

Hello, this auto height feature would be really useful.
Right now I have a paginating view with text and images, and I have to set heights for iPhones and iPads, each of them a different height for portrait or landscape, each iPhone and iPad have different sizes witch can make a text multiline or not, not to count when the app can be in a split view when multitasking on the iPad. Pleeeeeease make this happen :)

from swiftuix.

vmanot avatar vmanot commented on May 2, 2024

@welove taking a look at it - hopefully I can solve it today.

from swiftuix.

vmanot avatar vmanot commented on May 2, 2024

@welove could we discuss this? I'm unsure as to what behavior you want with PaginationView. Dynamically changing height based on content seems a bit jarring - do you want the maximum height selected?

from swiftuix.

welove avatar welove commented on May 2, 2024

I believe the best solution is to assume the height of the tallest page of all. That way is guaranteed that no content gets clipped/cut

from swiftuix.

welove avatar welove commented on May 2, 2024

Hello, any progress on this? I'm almost launching an app and this update would be very welcome 🙏

from swiftuix.

vmanot avatar vmanot commented on May 2, 2024

@welove I really can't figure out how to get this to work - calculating and setting view.frame.sizeon the underlying UIPageViewController doesn't seem to work :/

from swiftuix.

vmanot avatar vmanot commented on May 2, 2024

Closing this issue as I don't know how to fix this - or even the best API. Please reopen if you have any workarounds, and/or raise a PR.

from swiftuix.

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.