TabBarView: animations!

This commit is contained in:
James Magahern
2021-02-11 20:25:16 -08:00
parent 8a39176414
commit 94b0f4348c
2 changed files with 29 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ class DocumentControlViewController: UIViewController
let fontSizeAdjustView = FontSizeAdjustView()
let findOnPageControlView = DocumentControlView()
let navigationControlView = NavigationControlsView()
let settingsView = DocumentControlView()
var observations: [NSKeyValueObservation] = []
@@ -24,9 +25,13 @@ class DocumentControlViewController: UIViewController
findOnPageControlView.label.text = "Find On Page"
findOnPageControlView.imageView.image = UIImage(systemName: "magnifyingglass")
settingsView.label.text = "Settings"
settingsView.imageView.image = UIImage(systemName: "gear")
documentControlView.addArrangedSubview(navigationControlView)
documentControlView.addArrangedSubview(fontSizeAdjustView)
documentControlView.addArrangedSubview(findOnPageControlView)
documentControlView.addArrangedSubview(settingsView)
for (i, view) in documentControlView.arrangedSubviews.enumerated() {
view.drawsBottomSeparator = (i < documentControlView.arrangedSubviews.count - 1)