thasianx / elegantpages Goto Github PK
View Code? Open in Web Editor NEWThe elegant full screen page view missed in SwiftUI
License: MIT License
The elegant full screen page view missed in SwiftUI
License: MIT License
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.
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
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
I am getting an issue when trying to compile your example code. I get a segmentation fault: 11 in the PageViewBuilder but no real reason why. Any help would be good.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.