Home>

Using the module at this URL,
https://github.com/shin8484/PopupWindow

I made a pop-up that appears at the bottom of this readme, like typing a character into the text field and pressing a button. However, as with this original demo, the keyboard appears when you type, and you can't see where i am typing and you can't press the buttons. What should I do at such times?
The window class that pops up is as follows.

class RegisterPopupView: UIView, PopupViewContainable, Nibable {
    enum Const {
        static let height: CGFloat = 369
    }
    @IBOutlet weak var containerView: UIView! {
        didSet {
            containerView.layer.masksToBounds = true
        }
    }
    @IBOutlet weak var closeButton: UIButton! {
        didSet {
            closeButton.setImage (UIImage (named: "close"), for: .normal)
            closeButton.imageView? .tintColor = .gray
        }
    }
    var registerButtonTapHandler: (()->Void)?
    var closeButtonTapHandler: (()->Void)?
    override func awakeFromNib () {
        super.awakeFromNib ()
        backgroundColor = UIColor.backgroundColor ()
        addDropShadow (type: .dynamic, color: .black, opacity: 0.2, radius: 3, shadowOffset: CGSize (width: 0, height: 5))
    }
    @IBAction func didTapRegisterButton () {
        registerButtonTapHandler? ()
    }
    @IBAction func didTapCloseButton () {
        closeButtonTapHandler? ()
    }
}
  • Answer # 1

    Because it is not implemented, it will be an answer when looking at the code, but is it possible to respond by shifting the Y coordinate of popupContainerWindow held by PopupWindowManager by the height of the keyboard when displaying the keyboard? ?