Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Issues when used with views inside of UIStackView #73

Open
jyounus opened this issue Dec 15, 2016 · 1 comment
Open

Issues when used with views inside of UIStackView #73

jyounus opened this issue Dec 15, 2016 · 1 comment

Comments

@jyounus
Copy link

jyounus commented Dec 15, 2016

Hey there,

It seems like Shimmer doesn't work well with UIStackViews.

Here's what it's supposed to look like (this is without Shimmer added): https://abload.de/img/simulatorscreenshot15hokh1.png

Here's a screenshot of what happens when I add the Shimmer effect to the small grey view at the bottom: https://abload.de/img/simulatorscreenshot15x1kkz.png

The view hierarchy itself is very simple.

Cell View (grey coloured)
--UIStackView (white coloured)
----View (pink coloured)
----View (grey coloured)

I've got another similar view in my project which doesn't use a UIStackView and it works fine there (except from the fact that it's messed up when I rotate the device, but that's a different issue).

@grp
Copy link
Contributor

grp commented Dec 15, 2016

I'd try wrapping another view around the shimmer view so the stack view doesn't modify it.

Otherwise, I'd suggest debugging what properties the stack view sets on the view. If you can replicate that in a test case that shows what properties cause incorrect layout, can take a look at that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants