Skip to content

Commit

Permalink
Replace navigation buttons for notification details
Browse files Browse the repository at this point in the history
  • Loading branch information
justtwago committed Apr 26, 2024
1 parent 972336f commit fe94674
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
Expand Up @@ -340,12 +340,20 @@ extension NotificationDetailsViewController {

navigationItem.backBarButtonItem = backButton

let next = UIButton(type: .custom)
next.setImage(.gridicon(.arrowUp), for: .normal)
let next = UIButton(type: .system)
if let customIcon = UIImage(named: "arrow-up") {
next.setImage(customIcon, for: .normal)
} else {
next.setImage(.gridicon(.arrowUp), for: .normal)
}
next.addTarget(self, action: #selector(nextNotificationWasPressed), for: .touchUpInside)

let previous = UIButton(type: .custom)
previous.setImage(.gridicon(.arrowDown), for: .normal)
let previous = UIButton(type: .system)
if let customIcon = UIImage(named: "arrow-down") {
previous.setImage(customIcon, for: .normal)
} else {
previous.setImage(.gridicon(.arrowDown), for: .normal)
}
previous.addTarget(self, action: #selector(previousNotificationWasPressed), for: .touchUpInside)

previousNavigationButton = previous
Expand Down
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "arrow-down.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "arrow-up.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

0 comments on commit fe94674

Please sign in to comment.