NewsBlur/clients/ios/Classes/StoryPagesViewController.swift
David Sinclair 12e7eb3c9b #1334 (modern widget)
- Feed and story images.
- Tap action to open story.
- Layout tweaks.
2021-12-10 15:21:56 -07:00

25 lines
717 B
Swift

//
// StoryPagesViewController.swift
// NewsBlur
//
// Created by David Sinclair on 2020-08-27.
// Copyright © 2020 NewsBlur. All rights reserved.
//
import UIKit
import WidgetKit
/// Manages story pages, containing the previous, current, and next stories.
class StoryPagesViewController: StoryPagesObjCViewController {
/// Convenience initializer to load a new instance of this class from the XIB.
convenience init() {
self.init(nibName: "StoryPagesViewController", bundle: nil)
self.appDelegate = NewsBlurAppDelegate.shared()
}
/// Reload the widget timeline.
@objc func reloadWidget() {
WidgetCenter.shared.reloadTimelines(ofKind: "Latest")
}
}