Skip to content

Items blink for center and right section alignment #12

Description

@Villy21

Very interesting layout but I found a problem in your example.
I updated in your example generateExampleData function and run on iphone 6.
I see items begin to disappear when big items reach collectionView bottom. This happen when I change section layout with segmented controller to center or right and make some scroll.

  • (void)generateExampleData {
    int count=arc4random()%100;
    self.cellSizes = @[].mutableCopy;
    self.cellColors = @[].mutableCopy;

    NSArray* colorsArr = @[[UIColor redColor],
    [UIColor blueColor],
    [UIColor greenColor],
    [UIColor orangeColor],
    [UIColor purpleColor],
    [UIColor yellowColor],
    [UIColor magentaColor],
    [UIColor grayColor],
    ];

    for(int i=0;i<count;i++){
    [self.cellSizes addObject:@(arc4random()%400)];
    [self.cellColors addObject:colorsArr[arc4random()%colorsArr.count]];
    }
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions