Font size adjustment

This commit is contained in:
James Magahern
2020-09-22 15:37:13 -07:00
parent 679e59c20b
commit 399e779371
7 changed files with 262 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
//
// DocumentControlViewController.swift
// App
//
// Created by James Magahern on 9/22/20.
//
import UIKit
class DocumentControlViewController: UIViewController
{
let documentControlView = StackView(dimension: .vertical)
let fontSizeAdjustView = FontSizeAdjustView()
static public let preferredWidth = CGFloat(200.0)
static public let controlHeight = CGFloat(48.0)
convenience init() {
self.init(nibName: nil, bundle: nil)
documentControlView.addArrangedSubview(fontSizeAdjustView)
}
override func loadView() {
self.view = documentControlView
}
override var preferredContentSize: CGSize {
get { documentControlView.sizeThatFits(CGSize(width: Self.preferredWidth, height: -1)) }
set {}
}
}