Skip to content

Conversation

@Obumbravit
Copy link

More reminiscent of iOS 13's appearance selector spacing. Also allows for adding more cells before running into issues, as a product of automatically calculated spacing.

- (void)layoutSubviews {
[super layoutSubviews];

if (self.containerStackView.spacing != (self.bounds.size.width - (60 * [self.options count])) / ([self.options count] + 1)) self.containerStackView.spacing = (self.bounds.size.width - (60 * [self.options count])) / ([self.options count] + 1);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of using layoutSubviews for stuff like this. Is there a better solution that you could do?

Package: me.conorthedev.libappearancecell
Name: libappearancecell
Version: 1.0.2
Version: 1.0.3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't increment the version please :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants