Skip to content

Commit

Permalink
fix for text styles not getting updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rajparad committed Nov 13, 2024
1 parent 349058c commit 0254114
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Wikipedia/Code/ScrollableEducationPanelViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,18 @@ class ScrollableEducationPanelViewController: UIViewController, Themeable {

var footer:String? {
get {
return footerTextView.text
return footerTextView.attributedText.string
}
set {
footerTextView.text = newValue
view.setNeedsLayout()
footerHTML = newValue
updateFooterHTML()
}
}

var footerHTML: String? {
didSet {
updateFooterHTML()
view.setNeedsLayout()
}
}

Expand Down

0 comments on commit 0254114

Please sign in to comment.