dillidon / alerts-and-pickers

Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
MIT License
5.66k stars 701 forks source link

Telegram picker: image picking bug #62

Open psi-gh opened 5 years ago

psi-gh commented 5 years ago

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.

img_0073

dillidon commented 5 years ago

@psi-gh проверю

dillidon commented 5 years ago

@psi-gh использование нативного алерт фреймворка сильно ограничивает в возможностях, особенно принимая во внимание, что он весь построен на AutoLayout

DiwakarThapa commented 5 years ago

@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 ?