UIScrollView
UIScrollView is a subclass of UIView that enables scrolling and zooming of content that is larger than the scroll view’s bounds. It handles touch-based panning and deceleration and is commonly used to present long content, interactive canvases, or image galleries within an iOS app.
Key properties include contentSize, which defines the scrollable area in points; contentOffset, the x and y
Zooming is supported by setting minimumZoomScale and maximumZoomScale and by providing a view to zoom via
Auto Layout can be used with UIScrollView via the contentLayoutGuide and frameLayoutGuide (iOS 11 and later)
UIScrollView uses the UIScrollViewDelegate protocol to notify about scrolling events, dragging, deceleration, and zooming. Implementing methods
Typical usage involves adding the scroll view to a view hierarchy, configuring its frame or constraints, setting