iOS: Add pointer effects to various buttons

This commit is contained in:
Shadowfacts 2020-09-30 18:14:38 -04:00
parent 4f3e1432e7
commit 364ffe9f94
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,7 @@ struct PreferencesView: View {
}, label: {
Text("Done")
})
.hoverEffect(.highlight)
}
private var appearanceSection: some View {

View File

@ -31,6 +31,7 @@ struct ToolBar: View {
.font(.system(size: 24))
}
.accessibility(label: Text("Back"))
.hoverEffect(.highlight)
.contextMenu {
ForEach(Array(navigator.backStack.suffix(5).enumerated()), id: \.1) { (index, url) in
Button {
@ -49,6 +50,7 @@ struct ToolBar: View {
.font(.system(size: 24))
}
.accessibility(label: Text("Forward"))
.hoverEffect(.highlight)
.contextMenu {
ForEach(navigator.forwardStack.prefix(5).enumerated().reversed(), id: \.1) { (index, url) in
Button {
@ -67,6 +69,7 @@ struct ToolBar: View {
.font(.system(size: 24))
}
.accessibility(label: Text("Reload"))
.hoverEffect(.highlight)
Spacer()
@ -75,6 +78,7 @@ struct ToolBar: View {
.font(.system(size: 24))
}
.accessibility(label: Text("Share"))
.hoverEffect(.highlight)
Spacer()
@ -85,6 +89,7 @@ struct ToolBar: View {
.font(.system(size: 24))
})
.accessibility(label: Text("Preferences"))
.hoverEffect(.highlight)
}
Spacer()