mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-22 05:26:30 +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.tableFooterView = UIView()
|
||||
tableView.contentInset.bottom = bottomInset
|
||||
tableView.isAccessibilityElement = false
|
||||
tableView.shouldGroupAccessibilityChildren = true
|
||||
|
||||
if viewModel.canRefresh {
|
||||
refreshControl = UIRefreshControl()
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue