diff --git a/Tusker/Screens/Notifications/NotificationsTableViewController.swift b/Tusker/Screens/Notifications/NotificationsTableViewController.swift index c8c17461..14f3f18a 100644 --- a/Tusker/Screens/Notifications/NotificationsTableViewController.swift +++ b/Tusker/Screens/Notifications/NotificationsTableViewController.swift @@ -38,8 +38,10 @@ class NotificationsTableViewController: EnhancedTableViewController { super.init(style: .plain) + #if !targetEnvironment(macCatalyst) self.refreshControl = UIRefreshControl() refreshControl!.addTarget(self, action: #selector(refreshNotifications(_:)), for: .valueChanged) + #endif } required init?(coder aDecoder: NSCoder) { diff --git a/Tusker/Screens/Profile/ProfileStatusesViewController.swift b/Tusker/Screens/Profile/ProfileStatusesViewController.swift index 66048851..5ea28c46 100644 --- a/Tusker/Screens/Profile/ProfileStatusesViewController.swift +++ b/Tusker/Screens/Profile/ProfileStatusesViewController.swift @@ -44,8 +44,10 @@ class ProfileStatusesViewController: EnhancedTableViewController { view.backgroundColor = .systemBackground + #if !targetEnvironment(macCatalyst) refreshControl = UIRefreshControl() refreshControl!.addTarget(self, action: #selector(refreshStatuses(_:)), for: .valueChanged) + #endif tableView.rowHeight = UITableView.automaticDimension tableView.estimatedRowHeight = 140 diff --git a/Tusker/Screens/Timeline/TimelineTableViewController.swift b/Tusker/Screens/Timeline/TimelineTableViewController.swift index 85914f7c..bf8bd44e 100644 --- a/Tusker/Screens/Timeline/TimelineTableViewController.swift +++ b/Tusker/Screens/Timeline/TimelineTableViewController.swift @@ -33,8 +33,10 @@ class TimelineTableViewController: EnhancedTableViewController, StatusTableViewC title = timeline.title tabBarItem.image = timeline.tabBarImage + #if !targetEnvironment(macCatalyst) self.refreshControl = UIRefreshControl() refreshControl!.addTarget(self, action: #selector(refreshStatuses(_:)), for: .valueChanged) + #endif userActivity = UserActivityManager.showTimelineActivity(timeline: timeline) }