Dynamic height pop view to accmodate lenghty content in a popup view for e.g Terms and Conditions with scroll support.
It automatically manages its height. Max height is the height of the device with 20 padding from top and bottom.
Aligns it self to centre of the screen.
Scoll view is added to support the lengthy content.
Customizable show and hide animation.
pod 'DynamicPopupView'
var dynamicPopUpVw = DynamicPopupVw()
dynamicPopUpVw?.delegate = self
dynamicPopUpVw?.showAnimationType = UIView.AnimationOptions.transitionCurlDown
dynamicPopUpVw?.hideAnimationType = UIView.AnimationOptions.transitionCurlUp
dynamicPopUpVw?.delayToAnimate = 1
dynamicPopUpVw?.titleLbl.text = "Terms and Conditions"
dynamicPopUpVw?.contentTxtVw.text = "Terms and Conditions"
dynamicPopUpVw.show(view:self.view)
dynamicPopUpVw.hide()
DynamicPopupVwProtocol
func termAccepted()
func termDeclined()