Enable dynamic type on detail view.

This commit is contained in:
Maurice Parker 2019-04-27 10:49:54 -05:00
parent 1730ffb0cc
commit 8be54564e4
2 changed files with 6 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class DetailViewController: UIViewController {
NotificationCenter.default.addObserver(self, selector: #selector(statusesDidChange(_:)), name: .StatusesDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(articleSelectionDidChange(_:)), name: .ArticleSelectionDidChange, object: navState)
NotificationCenter.default.addObserver(self, selector: #selector(progressDidChange(_:)), name: .AccountRefreshProgressDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(contentSizeCategoryDidChange(_:)), name: UIContentSizeCategory.didChangeNotification, object: nil)
}
override func viewDidAppear(_ animated: Bool) {
@ -125,6 +125,10 @@ class DetailViewController: UIViewController {
updateProgressIndicatorIfNeeded()
}
@objc func contentSizeCategoryDidChange(_ note: Notification) {
reloadHTML()
}
// MARK: Actions
@IBAction func nextUnread(_ sender: Any) {

View File

@ -3,8 +3,7 @@ body {
margin-bottom: 20px;
margin-left: 20px;
margin-right: 20px;
font-family: -apple-system-body;
font-size: 18px;
font: -apple-system-body;
word-wrap: break-word;
word-break: break-word;