Closed yccheok closed 3 years ago
Hi,
I able to "solve" the issue by
UIView.animate(withDuration: 2) {
self.heightConstraint.constant = 300
self.alert.contentView.layoutIfNeeded()
}
to
UIView.animate(withDuration: 2) {
self.heightConstraint.constant = 300
self.alert.view.layoutIfNeeded()
}
Thank you for creating
SDCAlertView
. It enables us to createUIAlertController
liked custom view.I was wondering, is it possible, to animate the height of
contentView
? Currently, this is what I have done so far.Here's the outcome - https://www.youtube.com/watch?v=wg1oEVME4HE
The "parent" of
contentView
not able to "follow" and animation height change ofcontentView
. The "parent" just change its own height abruptly.Is there a way, to make the "parent" of contentView also able to animate its own height gracefully?
Thanks.