Compare commits
2 Commits
f0c0376f80
...
682d68fd81
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 682d68fd81 | |
Shadowfacts | 9502944e62 |
|
@ -44,16 +44,13 @@ extension Pagination {
|
|||
}
|
||||
let rel = segments.last?.replacingOccurrences(of: "\"", with: "").trimmingCharacters(in: .whitespaces).components(separatedBy: "=")
|
||||
|
||||
guard let urlStr = url,
|
||||
let validURL = URL(string: urlStr),
|
||||
guard let validURL = url,
|
||||
let key = rel?.first,
|
||||
key == "rel",
|
||||
let value = rel?.last,
|
||||
let kind = Kind(rawValue: value),
|
||||
let components = URLComponents(url: validURL, resolvingAgainstBaseURL: false),
|
||||
let queryItems = components.queryItems else {
|
||||
return nil
|
||||
}
|
||||
let components = URLComponents(string: validURL),
|
||||
let queryItems = components.queryItems else { return nil }
|
||||
|
||||
let min = queryItems.first { $0.name == "min_id" }?.value
|
||||
let since = queryItems.first { $0.name == "since_id" }?.value
|
||||
|
|
|
@ -160,11 +160,12 @@ class NotificationsTableViewController: EnhancedTableViewController {
|
|||
let cellConfiguration = (tableView.cellForRow(at: indexPath) as? TableViewSwipeActionProvider)?.trailingSwipeActionsConfiguration()
|
||||
let config: UISwipeActionsConfiguration
|
||||
if let cellConfiguration = cellConfiguration {
|
||||
config = UISwipeActionsConfiguration(actions: [dismissAction] + cellConfiguration.actions)
|
||||
config = UISwipeActionsConfiguration(actions: cellConfiguration.actions + [dismissAction])
|
||||
config.performsFirstActionWithFullSwipe = cellConfiguration.performsFirstActionWithFullSwipe
|
||||
} else {
|
||||
config = UISwipeActionsConfiguration(actions: [dismissAction])
|
||||
config.performsFirstActionWithFullSwipe = false
|
||||
}
|
||||
config.performsFirstActionWithFullSwipe = true
|
||||
return config
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue