func addObserver(_ scrollView: UIScrollView) {
NotificationCenter.default.addObserver(self, selector: #selector(XXX), name:, object:)
}
@objc func getScrollView (_ notification: Notification, useScrollView : UIScrollView) {
// Doing something for scrollView
}
I want to pass the scrollView to the objc function getScrollView when I call addObserver function. How should I modify those two functions?