mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-20 22:30:45 +08:00
Add + update a11x for navigation titles (#1257)
* Add + update a11x for navigation items * A file is not a file extension
This commit is contained in:
@@ -75,8 +75,9 @@ NewIssueTableViewControllerDelegate {
|
||||
})
|
||||
|
||||
configureNavigationItems()
|
||||
navigationItem.configure(title: repo.name, subtitle: repo.owner)
|
||||
navigationItem.titleView?.accessibilityLabel = .localizedStringWithFormat("Repository, %@", "\(repo.owner)/\(repo.name)")
|
||||
let labelFormat = NSLocalizedString("Repository %@ by %@", comment: "Accessibility label for a repository navigation item")
|
||||
let accessibilityLabel = String(format: labelFormat, arguments: [repo.name, repo.owner])
|
||||
navigationItem.configure(title: repo.name, subtitle: repo.owner, accessibilityLabel: accessibilityLabel)
|
||||
}
|
||||
|
||||
// MARK: Private API
|
||||
|
||||
Reference in New Issue
Block a user