Enable dynamic type on detail view.
This commit is contained in:
parent
1730ffb0cc
commit
8be54564e4
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue