BasePageCollectionCell

public class BasePageCollectionCell: UICollectionViewCell

Base class for UICollectionViewCell

  • Animation oposition offset when cell is open

    Declaration

    Swift

    @IBInspectable public var yOffset: CGFloat = 40
  • The view used as the face of the cell must connectid from xib or storyboard.

    Declaration

    Swift

    @IBOutlet public weak var frontContainerView: UIView!
  • The view used as the back of the cell must connectid from xib or storyboard.

    Declaration

    Swift

    @IBOutlet public weak var backContainerView: UIView!
  • constraints for backContainerView must connectid from xib or storyboard

    Declaration

    Swift

    @IBOutlet public weak var backConstraintY: NSLayoutConstraint!
  • constraints for frontContainerView must connectid from xib or storyboard

    Declaration

    Swift

    @IBOutlet public weak var frontConstraintY: NSLayoutConstraint!
  • A Boolean value that indicates whether the cell is opened.

    Declaration

    Swift

    public var isOpened = false
  • Initializes a UICollectionViewCell from data in a given unarchiver.

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)

    Parameters

    aDecoder

    An unarchiver object.

    Return Value

    An initialized UICollectionViewCell object.

  • Open or close cell.

    Declaration

    Swift

    public func cellIsOpen(isOpen: Bool, animated: Bool = true)

    Parameters

    isOpen

    Contains the value true if the cell should display open state, if false should display close state.

    animated

    Set to true if the change in selection state is animated.