You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
636 B
25 lines
636 B
//
|
|
// CustomScrollView.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by Sujal on 1/10/18.
|
|
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
protocol CustomScrollView {
|
|
|
|
func scrollViewAsKeypadAppears()
|
|
|
|
}
|
|
|
|
extension CustomScrollView {
|
|
|
|
func scrollView() {
|
|
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
|
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide), name: NSNotification.Name.UIKeyboardWillHide, object: nil)
|
|
|
|
}
|
|
}
|