You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the code uses self.contentPadding in SDCAlertViewContentView, I found an issue.
When the content view is initialized, the appearance hasn't yet been applied, so when initializing the title and message labels, the following doesn't work:
This is because self.contentPadding isn't yet initialized here, so the layout widths don't get set right, and I'm finding that the end result is that sometimes my labels don't get sized properly.
The text was updated successfully, but these errors were encountered:
contentPadding is a UIAppearance-conforming property, so the default should always be set using UIAppearance.
I'll investigate, but I may not be able to get back to you until the weekend. In the meantime, you could opt for using version 1.4.1. A PR would be fantastic as well.
Now that the code uses
self.contentPadding
inSDCAlertViewContentView
, I found an issue.When the content view is initialized, the appearance hasn't yet been applied, so when initializing the title and message labels, the following doesn't work:
self.titleLabel.preferredMaxLayoutWidth = SDCAlertViewWidth - self.contentPadding.left - self.contentPadding.right;
self.messageLabel.preferredMaxLayoutWidth = SDCAlertViewWidth - self.contentPadding.left - self.contentPadding.right;
This is because
self.contentPadding
isn't yet initialized here, so the layout widths don't get set right, and I'm finding that the end result is that sometimes my labels don't get sized properly.The text was updated successfully, but these errors were encountered: