// observeã®çµæãæ ¼ç´ private var keyValueObservations = [NSKeyValueObservation]() // UIScrollViewã®ç§»åãæç¥ãã¦closureãå®è¡ãã private func addKVO(scrollView: UIScrollView, _ closure: @escaping ()->Void) { let keyValueObservation = scrollView.observe(\.contentOffset, options: [.new, .old]) { _, change in if change.newValue == nil { return } closure() // ãã¼ãã¼ããæ¶ãã¨ãã»ã»ã» } keyValueObservations.append(keyValueObser
{{#tags}}- {{label}}
{{/tags}}