From 08b3c40da1f1a129d45e89224e0a0decbe4eac9f Mon Sep 17 00:00:00 2001 From: RATTANDEEP SINGH Date: Wed, 17 Jun 2020 20:09:03 +0530 Subject: [PATCH] Adding dynamic support of height in CardPartPagedView (#244) --- CardParts/src/Classes/Card Parts/CardPartPagedView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CardParts/src/Classes/Card Parts/CardPartPagedView.swift b/CardParts/src/Classes/Card Parts/CardPartPagedView.swift index 54b6e53c..0750e996 100644 --- a/CardParts/src/Classes/Card Parts/CardPartPagedView.swift +++ b/CardParts/src/Classes/Card Parts/CardPartPagedView.swift @@ -34,11 +34,16 @@ public class CardPartPagedView: UIView, CardPartView { } } + public var height: CGFloat { + didSet{ + self.updateConstraints() + } + } + public var delegate: CardPartPagedViewDelegate? fileprivate var pageControl: UIPageControl fileprivate var scrollView: UIScrollView - fileprivate var height: CGFloat public init(withPages pages: [CardPartStackView], andHeight height: CGFloat) {