Back to Expanding Collection

BasePageCollectionCell

docs/docsets/DemoExpandingCollection.docset/Contents/Resources/Documents/Classes/BasePageCollectionCell.html

3.1.02.5 KB
Original Source

BasePageCollectionCell

public class BasePageCollectionCell: UICollectionViewCell

Base class for UICollectionViewCell

`

                yOffset
                `

Animation oposition offset when cell is open

Declaration

Swift

@IBInspectable public var yOffset: CGFloat = 40

[

Vars

](#/Vars)

`

                frontContainerView
                `

The view used as the face of the cell must connectid from xib or storyboard.

Declaration

Swift

@IBOutlet public weak var frontContainerView: UIView!

`

                backContainerView
                `

The view used as the back of the cell must connectid from xib or storyboard.

Declaration

Swift

@IBOutlet public weak var backContainerView: UIView!

`

                backConstraintY
                `

constraints for backContainerView must connectid from xib or storyboard

Declaration

Swift

@IBOutlet public weak var backConstraintY: NSLayoutConstraint!

`

                frontConstraintY
                `

constraints for frontContainerView must connectid from xib or storyboard

Declaration

Swift

@IBOutlet public weak var frontConstraintY: NSLayoutConstraint!

`

                isOpened
                `

A Boolean value that indicates whether the cell is opened.

Declaration

Swift

public var isOpened = false

[

inits

](#/inits)

`

                init(coder:)
                `

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.

`

                cellIsOpen(_:animated:)
                `

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.

|

© 2016 AlexKalinkin. All rights reserved. (Last updated: 2016-06-10)

Generated by jazzy ♪♫ v0.5.0, a Realm project.