From 4aed4fbb244aed72946c087997f19c1f3dd803e4 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Fri, 19 Jul 2024 16:59:25 -0400 Subject: [PATCH] Remove weird font inflation for tablet. --- JSONCreator_iOS/JSONCreator/DetailViewController.swift | 6 +----- .../JSONCreator/MoleculeReplacementViewController.swift | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/JSONCreator_iOS/JSONCreator/DetailViewController.swift b/JSONCreator_iOS/JSONCreator/DetailViewController.swift index 1e65bad..55bbee2 100644 --- a/JSONCreator_iOS/JSONCreator/DetailViewController.swift +++ b/JSONCreator_iOS/JSONCreator/DetailViewController.swift @@ -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 diff --git a/JSONCreator_iOS/JSONCreator/MoleculeReplacementViewController.swift b/JSONCreator_iOS/JSONCreator/MoleculeReplacementViewController.swift index 510d05e..4334d31 100644 --- a/JSONCreator_iOS/JSONCreator/MoleculeReplacementViewController.swift +++ b/JSONCreator_iOS/JSONCreator/MoleculeReplacementViewController.swift @@ -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