Comments (3)
I had a quick look and figured out that
SizePreferenceKey
is wrongly triggered withCGSize.zero
resulting the breakdown ofCarouselStack
's appearance. So it could be temporarily fixed by skippingCGSize.zero
value insideonPreferenceChange(_:_)
modifier as follows..onPreferenceChange(SizePreferenceKey.self) { size in if size != .zero { DispatchQueue.main.async { self.size = size } } }
Thank you for workaround - going to apply this as a temporary fix and will wait for fix versions!
@1er4y Thank you for raising this issue with minimum project. 😃
Everything for nice library =)
from shuffleit.
@1er4y Thank you for raising this issue with minimum project. 😃
I had a quick look and figured out that SizePreferenceKey
is wrongly triggered with CGSize.zero
resulting the breakdown of CarouselStack
's appearance. So it could be temporarily fixed by skipping CGSize.zero
value inside onPreferenceChange(_:_)
modifier as follows.
.onPreferenceChange(SizePreferenceKey.self) { size in
if size != .zero {
DispatchQueue.main.async {
self.size = size
}
}
}
from shuffleit.
The issue is now closed since it has been resolved and the fix is available in Version 2.1.3.
from shuffleit.
Related Issues (9)
- CarouselStack not rendering properly if its child view contains Button inside Stack views HOT 1
- To implement ShuffleDeck
- To fix the warning of updating the view multiple times in CarouselStack while sliding
- Support for jump a specific item on CarouselView
- Cannot call the view with a NavigationLink HOT 3
- CarouselStack inside List
- Incorporate velocity-based calculations into swipe gesture handling
- Cards are not swipeable in tvos.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shuffleit.