UIPageControl

extension UIPageControl
  • A convenience method wrapping the .onValueChanged event type for UIPageControl.

    Declaration

    Swift

    @discardableResult
    public func onChange(handler: @escaping (_ value: Int) -> Void) -> Self

    Parameters

    handler

    The closure to be called on the valueChanged event

    Return Value

    itself so you can daisy chain the other event handler calls