Closed sayanee closed 8 years ago
š±
Yuh I find Autolayout hard... where's my CSS š
The main beef is here..
"<NSLayoutConstraint:0x15d74b2d0 H:[UIButton:0x15d74c0c0'Add to calendar'(288)]>",
"<NSLayoutConstraint:0x15d6e07b0 UIButton:0x15d74c0c0'Add to calendar'.leading == UITableViewCellContentView:0x15d6df8c0.leadingMargin>",
"<NSLayoutConstraint:0x15d6e0940 H:[UIButton:0x15d74c0c0'Add to calendar']-(NSSpace(8))-[UIButton:0x15d74c6a0'RSVP event']>",
"<NSLayoutConstraint:0x15d6e0a30 UIButton:0x15d74c6a0'RSVP event'.width == UIButton:0x15d74c0c0'Add to calendar'.width>",
"<NSLayoutConstraint:0x15d6e0a80 UIButton:0x15d74c6a0'RSVP event'.trailing == UITableViewCellContentView:0x15d6df8c0.trailingMargin>",
"<NSLayoutConstraint:0x15d6a8480 'fittingSizeHTarget' H:[UITableViewCellContentView:0x15d6df8c0(375)]>"
The thing is, if there are multiple constraints (CSS declarations) that cannot be satisfied, iOS warns you like ^. CSS just chooses the latest one silently!
I'll have a look š
@sayanee ^ made a PR with the proposed fix, let me know if you have any questions
with #23 no more auto layout errors š±šš¤š
Released in Version 1.2.2 BIG thank you @jurvis š
I will release it in the app store as soon as the previous version v1.2.1
gets approved by Apple! Should be by this week š
Waiting for Review on the App Store!