Open liuxuan30 opened 9 years ago
From what I've seen is the way the library works, is not a bug. It doesn't make a copy of the layout attributes everytime you add one to a view, so yes, you need to do a new one for each.
That's correct. Theres a convenience initializer for BLKFlexibleHeightBarSubviewLayoutAttributes To init a new set of layout attributes exactly like an existing one. See initWithExistingLayoutAttributes
do you consider make it re-usable? kind of verbose when adding the attributes
I tried to reuse initialViewLayoutAttributes like below: I have two subviews, and each time I just reuse the initial and final layout attributes. However at run time, I found the self.titleView's initial frame is already same as self.navigationCollectionView.
I had to create two copies for each view, and the titleView frame is correct then. Is this a bug?