SCKGridViewDelegate

@objc public protocol SCKGridViewDelegate: SCKViewDelegate

An object conforming to the SCKGridViewDelegate protocol may implement a method to provide unavailable time ranges to a grid-style schedule view in addition to other methods defined in SCKViewDelegate.

  • Implement this method to specify the first displayed hour. Defaults to 0.

    Parameter

    Parameter gridView: The grid view asking for a start hour.

    Returns

    An hour value from 0 to 24.

    Declaration

    Swift

    func dayStartHour(for gridView: SCKGridView) -> Int

    Parameters

    gridView

    The grid view asking for a start hour.

    Return Value

    An hour value from 0 to 24.

  • Implement this method to specify the last displayed hour. Defaults to 24.

    Parameter

    Parameter gridView: The grid view asking for a start hour.

    Returns

    An hour value from 0 to 24, where 0 is parsed as 24.

    Declaration

    Swift

    func dayEndHour(for gridView: SCKGridView) -> Int

    Parameters

    gridView

    The grid view asking for a start hour.

    Return Value

    An hour value from 0 to 24, where 0 is parsed as 24.

  • Implemented by a grid-style schedule view’s delegate to provide an array of unavailable time ranges that are drawn as so by the view.

    Parameter

    Parameter gridView: The schedule view asking for the values.

    Returns

    The array of unavailable time ranges (may be empty).

    Declaration

    Swift

    func unavailableTimeRanges(for gridView: SCKGridView) -> [SCKUnavailableTimeRange]

    Parameters

    gridView

    The schedule view asking for the values.

    Return Value

    The array of unavailable time ranges (may be empty).