Fix not being able to compile for Catalyst
This commit is contained in:
parent
75d26e613b
commit
59c00b01dc
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue