Remove weird font inflation for tablet.

This commit is contained in:
Hedden, Kyle Matthew 2024-07-19 16:59:25 -04:00
parent b59683b9f9
commit 4aed4fbb24
2 changed files with 2 additions and 10 deletions

View File

@ -22,11 +22,7 @@ class DetailViewController: UIViewController {
modalPresentationStyle = .fullScreen
view.addSubview(textView)
if UIDevice.current.userInterfaceIdiom == .pad {
textView.font = UIFont.systemFont(ofSize: 40)
} else {
textView.font = UIFont.systemFont(ofSize: 14)
}
textView.font = UIFont.systemFont(ofSize: 14)
textView.translatesAutoresizingMaskIntoConstraints = false
textView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
textView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor).isActive = true

View File

@ -26,11 +26,7 @@ class MoleculeReplacementViewController: UIViewController {
modalPresentationStyle = .fullScreen
view.addSubview(textView)
if UIDevice.current.userInterfaceIdiom == .pad {
textView.font = UIFont.systemFont(ofSize: 40)
} else {
textView.font = UIFont.systemFont(ofSize: 14)
}
textView.font = UIFont.systemFont(ofSize: 14)
textView.translatesAutoresizingMaskIntoConstraints = false
textView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
textView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor).isActive = true