-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProgressWaveformView with StripeConfig #106
Comments
Thanks for reporting this @ziad-halabi9. Would you mind pasting the other solution (which I agree would be worse since it needs to calculate twice) though? You mentioned they don’t line up perfectly, which may point to a reason… They should always line up if correctly placed inside a ZStack I’d say. |
Thanks @dmrschmidt for getting back to me quickly and have safe travels! The other solution was mentioned here. The code looks like this:
I tried different tricks like moving the GeometryReader out like mentioned in that post, or setting height or not. The results look like this: Hope it's not a silly issue. However, I don't want to invest more in this solution as you said, the other is the better practice. Let me know if you find anything. Thanks for looking into it! |
Hmm… that looks very „suspicious“… I’ll try to find some time today / tomorrow or over the weekend. Would you mind sharing an image of the first solutions misalignment as well, so I have a reference when debugging to see whether I get the same result or a different one? |
In the initial solution, the problem is that the whole view disappears when striped is used. Hence why I didn't share a screenshot. So by just adding configuration: |
Following the example here, if I just add a StripeConfig, the view no longer shows up:
I see in another issue, it was proposed to draw 2 WaveformView as an alternative solution. However when I tried that, the 2 WaveformViews didn't line up perfectly. Plus, the above solution seems better.
Any solution for the problem above however?
Thanks in advance for the help and thanks for creating and maintaining this library, it's great!
The text was updated successfully, but these errors were encountered: