UIScrollView
class UIScrollView : UIView, NSCoding
-
Scrolls the rect to the center of the scrollview.
Declaration
Swift
public func scrollToCentered(_ rect: CGRect, animated: Bool)Parameters
rectRect or frame to scroll to.
animatedFlag to animate the scroll.
-
Boolean function determining if scrollview has scrolled past a given threshold.
Declaration
Swift
public func scrolledPastThreshold(_ percentageThreshold: CGFloat) -> BoolParameters
percentageThresholdThreshold percentage.
Return Value
True, if scrolled past, false otherwise.
UIScrollView Extension Reference