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
Hello and first of all thanks for a great library!
With version > 3.0.0 or more specifically since commit acaa9b6 I see an issue with setting a custom glowContainerView on the ParallaxEffectOptions property of my UICollectionViewCell. No matter how I set the glowContainerView property it results in the cell's contentView being removed from its superview and the cell has no visible content in the UICollectionView.
My cell inherits from ParallaxCollectionViewCell and in awakeFromNib() or setupParallax() I would like to customize the ParallaxEffectOptions by using the options property and set a different glowContainerView. The glowContainerView property however is at this point already initialized with the cell's contentView (happens in ParallaxCollectionViewCell#commonInit). Setting a different glowContainerView subsequently leads to the contentView being removed from its superview by a property observer. As commonInit is called from the initializer I couldn't find a way to set my own glowContainerView before the contentView is set as default.
My first guess for a fix would be to remove the property observer on glowContainerView so that it doesn't change the view hierarchy. I am not sure of possible side effects however.
Kind regards and all the best,
Markus
The text was updated successfully, but these errors were encountered:
Hello and first of all thanks for a great library!
With version > 3.0.0 or more specifically since commit acaa9b6 I see an issue with setting a custom
glowContainerView
on theParallaxEffectOptions
property of myUICollectionViewCell
. No matter how I set theglowContainerView
property it results in the cell'scontentView
being removed from its superview and the cell has no visible content in theUICollectionView
.My cell inherits from
ParallaxCollectionViewCell
and inawakeFromNib()
orsetupParallax()
I would like to customize theParallaxEffectOptions
by using the options property and set a differentglowContainerView
. TheglowContainerView
property however is at this point already initialized with the cell'scontentView
(happens inParallaxCollectionViewCell#commonInit
). Setting a differentglowContainerView
subsequently leads to thecontentView
being removed from its superview by a property observer. AscommonInit
is called from the initializer I couldn't find a way to set my ownglowContainerView
before thecontentView
is set as default.My first guess for a fix would be to remove the property observer on
glowContainerView
so that it doesn't change the view hierarchy. I am not sure of possible side effects however.Kind regards and all the best,
Markus
The text was updated successfully, but these errors were encountered: