SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.3k stars 742 forks source link

changing the hight of presented view #353

Closed embassem closed 4 years ago

embassem commented 4 years ago

I'd like to change the height when navigating. I'm presenting navigation Controller with VC1 as root with as a bottom Message with the height of 350 when some action in VC1 happened it will push VC2 witch should change the height to 500 if push VC3 height is 400 if pop to VC1 height is 350 again and so on is this behavior applicable?

wtmoose commented 4 years ago

SwiftMessages isn’t going to automatically perform animated height changes for you, but you should be able to do your own animations. Navigation controllers don’t naturally size to fit the content of their child view controllers. So you’ll have to explicitly set and animate the UINavigationController‘s height.