Add 'Expand top margin' switcher in DebugTextViewController

This commit is contained in:
Shin Yamamoto
2023-08-11 16:46:42 +09:00
parent 6e17ff734a
commit 5d02681b05
2 changed files with 35 additions and 8 deletions
@@ -37,6 +37,14 @@ final class DebugTextViewController: UIViewController, UITextViewDelegate {
}
}
@IBAction func toggleTopMargin(_ sender: UISwitch) {
if sender.isOn {
textViewTopConstraint.constant = 160
} else {
textViewTopConstraint.constant = 16
}
}
@IBAction func close(sender: UIButton) {
// (self.parent as? FloatingPanelController)?.removePanelFromParent(animated: true, completion: nil)
dismiss(animated: true, completion: nil)