mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Refactoring
This commit is contained in:
parent
339159abd1
commit
00de105df4
4 changed files with 5 additions and 6 deletions
|
@ -53,6 +53,8 @@ class TableViewController: UITableViewController {
|
||||||
tableView.cellLayoutMarginsFollowReadableWidth = true
|
tableView.cellLayoutMarginsFollowReadableWidth = true
|
||||||
tableView.tableFooterView = UIView()
|
tableView.tableFooterView = UIView()
|
||||||
tableView.contentInset.bottom = bottomInset
|
tableView.contentInset.bottom = bottomInset
|
||||||
|
tableView.isAccessibilityElement = false
|
||||||
|
tableView.shouldGroupAccessibilityChildren = true
|
||||||
|
|
||||||
if viewModel.canRefresh {
|
if viewModel.canRefresh {
|
||||||
refreshControl = UIRefreshControl()
|
refreshControl = UIRefreshControl()
|
||||||
|
|
|
@ -14,6 +14,7 @@ final class EmojiView: UIView {
|
||||||
super.init(frame: .zero)
|
super.init(frame: .zero)
|
||||||
|
|
||||||
initialSetup()
|
initialSetup()
|
||||||
|
setupAccessibility()
|
||||||
applyEmojiConfiguration()
|
applyEmojiConfiguration()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,8 +65,6 @@ private extension EmojiView {
|
||||||
emojiLabel.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
|
emojiLabel.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
|
||||||
emojiLabel.bottomAnchor.constraint(equalTo: layoutMarginsGuide.bottomAnchor)
|
emojiLabel.bottomAnchor.constraint(equalTo: layoutMarginsGuide.bottomAnchor)
|
||||||
])
|
])
|
||||||
|
|
||||||
setupAccessibility()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyEmojiConfiguration() {
|
func applyEmojiConfiguration() {
|
||||||
|
|
|
@ -15,6 +15,7 @@ final class InstanceView: UIView {
|
||||||
super.init(frame: .zero)
|
super.init(frame: .zero)
|
||||||
|
|
||||||
initialSetup()
|
initialSetup()
|
||||||
|
setupAccessibility()
|
||||||
applyInstanceConfiguration()
|
applyInstanceConfiguration()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,8 +72,6 @@ private extension InstanceView {
|
||||||
stackView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor),
|
stackView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor),
|
||||||
imageView.widthAnchor.constraint(equalTo: imageView.heightAnchor, multiplier: 16 / 9)
|
imageView.widthAnchor.constraint(equalTo: imageView.heightAnchor, multiplier: 16 / 9)
|
||||||
])
|
])
|
||||||
|
|
||||||
setupAccessibility()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyInstanceConfiguration() {
|
func applyInstanceConfiguration() {
|
||||||
|
|
|
@ -16,6 +16,7 @@ final class TagView: UIView {
|
||||||
super.init(frame: .zero)
|
super.init(frame: .zero)
|
||||||
|
|
||||||
initialSetup()
|
initialSetup()
|
||||||
|
setupAccessibility()
|
||||||
applyTagConfiguration()
|
applyTagConfiguration()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,8 +85,6 @@ private extension TagView {
|
||||||
lineChartView.heightAnchor.constraint(equalTo: usesLabel.heightAnchor),
|
lineChartView.heightAnchor.constraint(equalTo: usesLabel.heightAnchor),
|
||||||
lineChartView.widthAnchor.constraint(equalTo: lineChartView.heightAnchor, multiplier: 16 / 9)
|
lineChartView.widthAnchor.constraint(equalTo: lineChartView.heightAnchor, multiplier: 16 / 9)
|
||||||
])
|
])
|
||||||
|
|
||||||
setupAccessibility()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyTagConfiguration() {
|
func applyTagConfiguration() {
|
||||||
|
|
Loading…
Reference in a new issue