DocumentControls: Adds archive.today shortcut

This commit is contained in:
James Magahern
2021-02-23 17:08:35 -08:00
parent 6cffd94c54
commit 48a7c07551
2 changed files with 14 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ class DocumentControlViewController: UIViewController
let settingsView = DocumentControlView()
let readabilityView = DocumentControlView()
let darkModeView = DocumentControlView()
let archiveView = DocumentControlView()
var observations: [NSKeyValueObservation] = []
@@ -33,6 +34,9 @@ class DocumentControlViewController: UIViewController
readabilityView.label.text = "Reader Mode"
readabilityView.imageView.image = UIImage(systemName: "doc.richtext")
archiveView.label.text = "Archive.today"
archiveView.imageView.image = UIImage(systemName: "shippingbox")
if darkModeEnabled {
darkModeView.label.text = "Disable Dark Mode"
} else {
@@ -46,6 +50,7 @@ class DocumentControlViewController: UIViewController
documentControlView.addArrangedSubview(findOnPageControlView)
documentControlView.addArrangedSubview(darkModeView)
documentControlView.addArrangedSubview(readabilityView)
documentControlView.addArrangedSubview(archiveView)
documentControlView.addArrangedSubview(settingsView)