From 2e079945cb3c68ed05750757b59f0acc59155010 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 11 Jul 2025 06:32:46 -0700 Subject: feat: Development commit --- Sora/Data/Scroll/ScrollPositionPreferenceKey.swift | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 Sora/Data/Scroll/ScrollPositionPreferenceKey.swift (limited to 'Sora/Data/Scroll/ScrollPositionPreferenceKey.swift') diff --git a/Sora/Data/Scroll/ScrollPositionPreferenceKey.swift b/Sora/Data/Scroll/ScrollPositionPreferenceKey.swift deleted file mode 100644 index 6b78bdc..0000000 --- a/Sora/Data/Scroll/ScrollPositionPreferenceKey.swift +++ /dev/null @@ -1,19 +0,0 @@ -import SwiftUI - -struct ScrollPositionPreferenceKey: PreferenceKey { - typealias Value = ScrollPositionPreference? - - static var defaultValue: Value = nil - - static func reduce(value: inout Value, nextValue: () -> Value) { - guard let next = nextValue() else { return } - - if let current = value { - if abs(next.yPosition) < abs(current.yPosition) { - value = next - } - } else { - value = next - } - } -} -- cgit v1.2.3