RiValT_TimerEditor_PageViewContainer

@MainActor
class RiValT_TimerEditor_PageViewContainer : RiValT_Base_ViewController
extension RiValT_TimerEditor_PageViewContainer: UIPageViewControllerDataSource
extension RiValT_TimerEditor_PageViewContainer: UIPageViewControllerDelegate

This class acts as a “wrapper” for an instance of the RiValT_TimerEditor_PageViewController class. It also provides a Navigation Item, as well as a toolbar, for selecting amongst multiple timers in a group.

If there is only one timer in the group, then the toolbar is not displayed.

If there are more than one timers, the toolbar has numbered squares, representing each timer. Selecting a numbered square, brings that timer into the editor.

This also presents a “Delete” (trashcan) icon in the upper right corner (Navigation Bar). That acts in exactly the same manner as the “Delete” button in the Group Editor Screen. Selecting it, brings up a confirmation alert, and choosing to delete, will dismiss the screen.

Computed Properties

Base Class Overrides

  • Called when the view has loaded.

    Declaration

    Swift

    @MainActor
    override func viewDidLoad()
  • Called when the view is about to appear

    Declaration

    Swift

    @MainActor
    override func viewWillAppear(_ inIsAnimated: Bool)

    Parameters

    inIsAnimated

    True, if the appearance is animated.

  • Called when we are to segue to another view controller.

    Declaration

    Swift

    @MainActor
    override func prepare(for inSegue: UIStoryboardSegue, sender inData: Any?)

    Parameters

    inSegue

    The segue instance.

    inData

    An opaque parameter with any associated data.

Instance Methods

Callbacks

  • The delete button in the navbar was hit.

    See more

    Declaration

    Swift

    @IBAction
    @MainActor
    func deleteButtonHit(_ inButton: UIBarButtonItem)
  • Called when one of the numbered timer squares in the toolbar is hit.

    Declaration

    Swift

    @objc
    @MainActor
    func toolbarTimerHit(_ inButton: UIBarButtonItem)

    Parameters

    inButton

    The timer button.

UIPageViewControllerDataSource Conformance

  • Called to provide a new view controller, when swiping.

    Declaration

    Swift

    @MainActor
    func pageViewController(_: UIPageViewController, viewControllerBefore inNextViewController: UIViewController) -> UIViewController?

    Parameters

    viewControllerBefore

    The view controller for the timer that will be AFTER ours

  • Called to provide a new view controller, when swiping.

    Declaration

    Swift

    @MainActor
    func pageViewController(_: UIPageViewController, viewControllerAfter inPrevViewController: UIViewController) -> UIViewController?

    Parameters

    viewControllerAfter

    The view controller for the timer that will be BEFORE ours

UIPageViewControllerDelegate Conformance

  • Called when a swipe has completed.

    Declaration

    Swift

    @MainActor
    func pageViewController(_: UIPageViewController, didFinishAnimating: Bool, previousViewControllers: [UIViewController], transitionCompleted inCompleted: Bool)

    Parameters

    didFinishAnimating

    True, if the animation completed (ignored).

    previousViewControllers

    The previous view controllers (ignored).

    transitionCompleted

    True, if the transition completed (ignored).