HScroll
@available(iOS 9.0, *)
public class HScroll : UIView
A view that only allows for horizontal scrolling.
-
Creates a new view with a
ScrollView
embedded inside of a parent view.Declaration
Swift
public init( withPadding padding: Float = 0, _ closure: () -> UIView )
Parameters
padding
Top and Bottom padding of the scrollable view (Default: 0)
closure
A closure that returns the scrollable view