mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Minor fixes. (#406)
* Use the links colour from Compound for links. * Avoid constantly recomputing the RoomScreen view hierarchy while scrolling.
This commit is contained in:
@@ -51,8 +51,7 @@ struct FormattedBodyText: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Should be .element.accent but that's currently black
|
.tint(.element.links)
|
||||||
.tint(.blue)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private var blockquoteAttributes: AttributeContainer {
|
private var blockquoteAttributes: AttributeContainer {
|
||||||
|
|||||||
@@ -358,8 +358,13 @@ class TimelineTableViewController: UIViewController {
|
|||||||
|
|
||||||
extension TimelineTableViewController: UITableViewDelegate {
|
extension TimelineTableViewController: UITableViewDelegate {
|
||||||
func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
||||||
// Dispatches fix runtime warnings about making changes during a view update.
|
let isAtBottom = isAtBottom()
|
||||||
DispatchQueue.main.async { self.scrollToBottomButtonVisible = self.isAtBottom() }
|
|
||||||
|
// Only update the binding on changes to avoid needlessly recomputing the hierarchy when scrolling.
|
||||||
|
if scrollToBottomButtonVisible != isAtBottom {
|
||||||
|
// Dispatch to fix runtime warning about making changes during a view update.
|
||||||
|
DispatchQueue.main.async { self.scrollToBottomButtonVisible = isAtBottom }
|
||||||
|
}
|
||||||
|
|
||||||
paginateBackwardsPublisher.send(())
|
paginateBackwardsPublisher.send(())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Use the links colour from Compound for links and avoid recomputing the RoomScreen view hierarchy while scrolling.
|
||||||
Reference in New Issue
Block a user