Skip to content

Commit

Permalink
feat(Accessibility): Close menuDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrdctr committed Apr 13, 2023
1 parent 62ac0c4 commit 69d6b6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mail/Views/Menu Drawer/MenuDrawerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ struct NavigationDrawer: View {
}
}
}
.accessibilityAction(.escape) {
matomo.track(eventWithCategory: .menuDrawer, name: "closeByAccessibility")
navigationDrawerState.close()
}
.gesture(dragGesture)
.statusBarHidden(navigationDrawerState.isOpen)
.onChange(of: navigationDrawerState.isOpen) { isOpen in
Expand Down

0 comments on commit 69d6b6e

Please sign in to comment.