CreationKit Documentation

Class Scrollable​Stack.​Cell

class Cell: UIView  

A view that wraps every row in a ScrollableStack

ScrollableStack.Cell ScrollableStack.Cell UIGestureRecognizerDelegate UIGestureRecognizerDelegate ScrollableStack.Cell->UIGestureRecognizerDelegate UIView UIView ScrollableStack.Cell->UIView

Member Of

ScrollableStack

Conforms To

UIGestureRecognizerDelegate
UIView

Initializers

init(content​View:​)

public init(contentView: UIView)  

init?(coder:​)

public required init?(coder aDecoder: NSCoder)  

Properties

is​Hidden

public override var isHidden: Bool  

content​View

let contentView: UIView

row​Highlight​Color

var rowHighlightColor  

row​Background​Color

var rowBackgroundColor = UIColor.clear  

row​Inset

var rowInset: UIEdgeInsets  

separator​Axis

var separatorAxis: NSLayoutConstraint.Axis = .horizontal  

separator​Color

var separatorColor: UIColor  

separator​Width

var separatorWidth: CGFloat  

separator​Inset

var separatorInset: UIEdgeInsets = .zero  

is​Separator​Hidden

var isSeparatorHidden: Bool  

tap​Publisher

lazy var tapPublisher: AnyPublisher<UIView, Never>  

should​Hide​Separator

var shouldHideSeparator = false

Whether the separator should be hidden or not for this cell. Note that this doesn't always reflect whether the separator is hidden or not, since, for example, the separator could be hidden because it's the last row in the ScrollableStack view and automaticallyHidesLastSeparator is true.

Methods

touches​Began(_:​with:​)

public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)  

touches​Moved(_:​with:​)

public override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?)  

touches​Cancelled(_:​with:​)

public override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?)  

touches​Ended(_:​with:​)

public override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)  

gesture​Recognizer(_:​should​Receive:​)

public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool