Tusker/Tusker/Screens/Notifications/NotificationsPageViewContro...

41 lines
1.1 KiB
Swift

//
// NotificationsPageViewController.swift
// Tusker
//
// Created by Shadowfacts on 9/13/19.
// Copyright © 2019 Shadowfacts. All rights reserved.
//
import UIKit
import Pachyderm
class NotificationsPageViewController: SegmentedPageViewController {
private let notificationsTitle = NSLocalizedString("Notifications", comment: "notifications tab title")
private let mentionsTitle = NSLocalizedString("Mentions", comment: "mentions tab title")
init() {
let notifications = NotificationsTableViewController(allowedTypes: Pachyderm.Notification.Kind.allCases)
notifications.title = notificationsTitle
let mentions = NotificationsTableViewController(allowedTypes: [.mention])
mentions.title = mentionsTitle
super.init(titles: [
notificationsTitle,
mentionsTitle
], pageControllers: [
notifications,
mentions
])
title = notificationsTitle
tabBarItem.image = UIImage(systemName: "bell.fill")
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}