Telegram picker: image picking bug
psi-gh opened this issue · comments
In telegram picker on iPhone X iOS 12 when you select image and carousel scales, it won't show button "Send 1 photo", until you check some additional photo (so it became "Send 2 photos").
The reason is, when just 1 photo selected, send button placed behind photo carousel (see screenshot), which makes impossible to tap it.
@psi-gh использование нативного алерт фреймворка сильно ограничивает в возможностях, особенно принимая во внимание, что он весь построен на AutoLayout
@psi-gh I figured out the bug is in this like of code.
UIView.animate(withDuration: 0.25, animations: {
self.layout.invalidateLayout()
}) { finished in self.layoutSubviews() }
How to fix this bug ?