Skip to content

KoderLabs/DynamicPopupView

Repository files navigation

DynamicPopupView

Dynamic height pop view to accmodate lenghty content in a popup view for e.g Terms and Conditions with scroll support.

Alt text Alt text

Features

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.

Installation:

pod 'DynamicPopupView'

Usage:

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"

Show

dynamicPopUpVw.show(view:self.view)

Hide

dynamicPopUpVw.hide()

Delegate

DynamicPopupVwProtocol
func termAccepted()

func termDeclined()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published