You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use ParallaxHeader to create something like this.
but when I use snapkit with the blur+icon example to make half of the icon go beyond the bottom margin, the bottom half of the icon is clipped.
I'm using
roundIcon.snp.makeConstraints{ make in
make.left.equalToSuperview().offset(30)
make.bottom.equalToSuperview().offset(50)
make.width.height.equalTo(100)}
to align the round icon to the bottom left, like in the image above.
It seems that this code is responsible for the clipping but I understand it is necessary for the blur to happen nicely. Is there a workaround to have subviews go over the margin of the parallaxHeader?
Thanks!
The text was updated successfully, but these errors were encountered:
lsale
changed the title
clipsToBounds prevents from having overflowing elements
clipsToBounds prevents from having overflowing subviews
Jan 7, 2018
I solved this issue by forking ParallaxHeader, setting clipsToBounds to false and bringing by scrollViews contentView to the front by scrollView.bringSubview(toFront: contentView).
I'm trying to use ParallaxHeader to create something like this.
but when I use snapkit with the blur+icon example to make half of the icon go beyond the bottom margin, the bottom half of the icon is clipped.
I'm using
to align the round icon to the bottom left, like in the image above.
It seems that this code is responsible for the clipping but I understand it is necessary for the blur to happen nicely. Is there a workaround to have subviews go over the margin of the parallaxHeader?
Thanks!
The text was updated successfully, but these errors were encountered: