Class
ScrollableStack.Cell
class Cell: UIView
A view that wraps every row in a ScrollableStack
Relationships
Member Of
ScrollableStack
Conforms To
UIGestureRecognizerDelegate
UIView
Initializers
init(contentView:)
public init(contentView: UIView)
init?(coder:)
public required init?(coder aDecoder: NSCoder)
Properties
contentView
let contentView: UIView
rowHighlightColor
var rowHighlightColor
rowBackgroundColor
var rowBackgroundColor = UIColor.clear
rowInset
var rowInset: UIEdgeInsets
separatorAxis
var separatorAxis: NSLayoutConstraint.Axis = .horizontal
separatorColor
var separatorColor: UIColor
separatorWidth
var separatorWidth: CGFloat
separatorInset
var separatorInset: UIEdgeInsets = .zero
tapPublisher
lazy var tapPublisher: AnyPublisher<UIView, Never>
shouldHideSeparator
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
touchesBegan(_:with:)
public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
touchesMoved(_:with:)
public override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?)
touchesCancelled(_:with:)
public override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?)
touchesEnded(_:with:)
public override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
gestureRecognizer(_:shouldReceive:)
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool