Add 'Expand top margin' switcher in DebugTextViewController

This commit is contained in:
Shin Yamamoto committed 2023-08-11 16:46:42 +09:00
1 parent 6e17ff734a
commit 5d02681b05
2 files changed
+35 -8

No files matched your search

@@ -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)