Replies: 1 comment 1 reply
-
:( No idea on what can cause this at all.. So it seems that you have put the In By the way, do you have a sample view in which we can reproduce it easily? I also want check and see what is it. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experiencing something odd. I finally got around to experimenting with
GeometryReader
to fix the other issue I was having. That seems to be working well, in that everything draws correctly.But if the intended image doesn't load (or is nil), and only the placeholder remains, it seems that although the placeholder is correctly clipped, its bounds extend well beyond, and prevent tapping on things that it covers (our placeholder is quite tall and skinny, and we show just a portion inside).
Here's what the view looks like when the URL is nil:
Unfortunately, you can't tap on the "Shows," "For Sale," "Lists," or "Collection" tabs. If you look at the view hierarchy in Xcode, you can see that the placeholder image extends well beyond the bounds that finally clip it when running (in preview or simulator).
Once the URL image loads, everything is fine. My code looks like this (inside of a larger view):
You can see the placeholder's image view in the hierarchy (I've selected the one on the left, highlighted in blue):
I’ve tried putting
.clipped()
on various parts of this, but it has no effect.Any idea what's causing this or how to fix it? Obviously I can shrink the placeholder image. This behavior exists on both iOS 14.4 and 15b1. I'm using Kingfisher 6.3.0
Beta Was this translation helpful? Give feedback.
All reactions