From e18878ce96c2caa6e41c4ba2c6e63338b82fef68 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 28 Jul 2020 11:30:45 -0400 Subject: [PATCH] removing and spacing --- MVMCoreUI/BaseControllers/ScrollingViewController.swift | 1 + MVMCoreUI/BaseControllers/ViewController.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/MVMCoreUI/BaseControllers/ScrollingViewController.swift b/MVMCoreUI/BaseControllers/ScrollingViewController.swift index 9c14845c..eb1d5999 100644 --- a/MVMCoreUI/BaseControllers/ScrollingViewController.swift +++ b/MVMCoreUI/BaseControllers/ScrollingViewController.swift @@ -108,6 +108,7 @@ open class ScrollingViewController: ViewController { } open func rectToScrollToWhenKeyboardPopsUp() -> CGRect? { + guard let field = selectedField, let parent = selectedField?.superview else { return nil } diff --git a/MVMCoreUI/BaseControllers/ViewController.swift b/MVMCoreUI/BaseControllers/ViewController.swift index 076a6117..cee67c16 100644 --- a/MVMCoreUI/BaseControllers/ViewController.swift +++ b/MVMCoreUI/BaseControllers/ViewController.swift @@ -8,6 +8,7 @@ import UIKit + @objc open class ViewController: UIViewController, MVMCoreViewControllerProtocol, MVMCoreViewManagerViewControllerProtocol, MoleculeDelegateProtocol, FormHolderProtocol, MVMCoreActionDelegateProtocol, MVMCoreLoadDelegateProtocol, UITextFieldDelegate, UITextViewDelegate, ObservingTextFieldDelegate, MVMCoreUIDetailViewProtocol { //-------------------------------------------------- // MARK: - Properties