Skip to content

Commit

Permalink
Adding dynamic support of height in CardPartPagedView (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rattandeep1998 authored Jun 17, 2020
1 parent e6572ea commit 08b3c40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CardParts/src/Classes/Card Parts/CardPartPagedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit 08b3c40

Please sign in to comment.