GithubHelp home page GithubHelp logo

thasianx / elegantpages Goto Github PK

View Code? Open in Web Editor NEW
99.0 2.0 13.0 28.75 MB

The elegant full screen page view missed in SwiftUI

License: MIT License

Swift 100.00%
pageview pageviewcontroller swiftui elegantpages swift-package-manager swiftui-example swiftui-components swiftui-animations

elegantpages's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

elegantpages's Issues

Setting Custom height for ElegantHList based on content

Hello Kevin,

This is more of a question rather than a issue.

I am trying to use ElegantHList and set the height of the view to height of the cell.
I have this as ViewForPage

Text("sample text")
            .background(Color.yellow)
            .erased

When I use that in ElegantHList, it takes full screen height rather than height of the text.
Screen Shot 2021-01-10 at 10 13 21 PM

I know I can specify .frame(height: 50) etc., But, I would like this to be dynamic based on height of my view.
Can you please tell me if there is a better way ?

P.S: this is my first iphone app.

Thank You,
Sai

Landscape/Portrait orientation issue

Hi, there is an issue on page width when I rotate a device left or right. Any suggestion how to fix this? The goal is to resize the pages dynamically so that they fits in size for both, landscape and portrait orientation. Thanks!
EDIT: I am using ElegantHPages

How to decide initial pageCount for ElegantListView

Thanks for this great library.

I have a question on the initial pageCount. It looks like pageCount has to be prefilled before we use let manager = ElegantListManager(pageCount: data.count). However, then data is impossible to be defined as a @State. This will make page loading on demand impossible. Can I get some suggestions?

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.