NewsBlur/clients/ios/Classes/StoryPagesViewController.swift
David Sinclair 69b36e61f8 #1247 (Mac Catalyst edition)
- Added widget on Mac.
- Updated to support latest layout APIs.
2023-11-13 20:01:33 -06:00

25 lines
704 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.reloadAllTimelines()
}
}