2020-09-25 20:31:01 -07:00
|
|
|
//
|
|
|
|
// VerticalPageViewController.swift
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by David Sinclair on 2020-09-24.
|
|
|
|
// Copyright © 2020 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
/// Manages vertical story pages. Instances of this are contained within `HorizontalPageViewController`.
|
|
|
|
class VerticalPageViewController: UIPageViewController {
|
2020-09-26 20:30:35 -07:00
|
|
|
/// Weak reference to owning horizontal page view controller.
|
|
|
|
weak var horizontalPageViewController: HorizontalPageViewController?
|
2020-09-25 20:31:01 -07:00
|
|
|
|
2020-09-26 20:30:35 -07:00
|
|
|
/// Weak computed reference to owning detail view controller.
|
|
|
|
weak var detailViewController: DetailViewController? {
|
|
|
|
return horizontalPageViewController?.detailViewController
|
|
|
|
}
|
2020-09-25 20:31:01 -07:00
|
|
|
}
|