Remove weird font inflation for tablet.
This commit is contained in:
parent
b59683b9f9
commit
4aed4fbb24
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user