Settle on a method of making the password cells visible in storyboard.
This commit is contained in:
@@ -143,6 +143,7 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) {
|
||||
UICollectionViewFlowLayout *layout = (UICollectionViewFlowLayout *)collectionViewLayout;
|
||||
UIEdgeInsets occludedInsets = [self.passwordCollectionView occludedInsets];
|
||||
UIEdgeInsets insets = layout.sectionInset;
|
||||
insets.top = insets.bottom; // Undo storyboard hack for manual top-occluded insets.
|
||||
|
||||
if (section == 0)
|
||||
insets.top += occludedInsets.top;
|
||||
|
||||
Reference in New Issue
Block a user