Refactoring

This commit is contained in:
Justin Mazzocchi 2021-02-01 20:44:56 -08:00
parent 339159abd1
commit 00de105df4
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
4 changed files with 5 additions and 6 deletions

View File

@ -53,6 +53,8 @@ class TableViewController: UITableViewController {
tableView.cellLayoutMarginsFollowReadableWidth = true
tableView.tableFooterView = UIView()
tableView.contentInset.bottom = bottomInset
tableView.isAccessibilityElement = false
tableView.shouldGroupAccessibilityChildren = true
if viewModel.canRefresh {
refreshControl = UIRefreshControl()

View File

@ -14,6 +14,7 @@ final class EmojiView: UIView {
super.init(frame: .zero)
initialSetup()
setupAccessibility()
applyEmojiConfiguration()
}
@ -64,8 +65,6 @@ private extension EmojiView {
emojiLabel.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
emojiLabel.bottomAnchor.constraint(equalTo: layoutMarginsGuide.bottomAnchor)
])
setupAccessibility()
}
func applyEmojiConfiguration() {

View File

@ -15,6 +15,7 @@ final class InstanceView: UIView {
super.init(frame: .zero)
initialSetup()
setupAccessibility()
applyInstanceConfiguration()
}
@ -71,8 +72,6 @@ private extension InstanceView {
stackView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor),
imageView.widthAnchor.constraint(equalTo: imageView.heightAnchor, multiplier: 16 / 9)
])
setupAccessibility()
}
func applyInstanceConfiguration() {

View File

@ -16,6 +16,7 @@ final class TagView: UIView {
super.init(frame: .zero)
initialSetup()
setupAccessibility()
applyTagConfiguration()
}
@ -84,8 +85,6 @@ private extension TagView {
lineChartView.heightAnchor.constraint(equalTo: usesLabel.heightAnchor),
lineChartView.widthAnchor.constraint(equalTo: lineChartView.heightAnchor, multiplier: 16 / 9)
])
setupAccessibility()
}
func applyTagConfiguration() {