OSDN Git Service

省略可能な部分を省略
[kcd/KCD.git] / KCD / ShipViewController.swift
index 5054f21..3cb6df4 100644 (file)
@@ -72,8 +72,8 @@ class ShipViewController: MainTabVIewItemViewController {
         tableViews
             .forEach {
                 NotificationCenter.default
-                    .addObserver(forName: .NSScrollViewDidEndLiveScroll, object: $0, queue: nil) { notification in
-                        guard let target = notification.object as? NSScrollView else { return }
+                    .addObserver(forName: .NSScrollViewDidEndLiveScroll, object: $0, queue: nil) {
+                        guard let target = $0.object as? NSScrollView else { return }
                         let visibleRect = target.documentVisibleRect
                         tableViews
                             .filter { $0 != target }