From 36d1218bcf28e7a49aef8cd2a3c41027368f79f4 Mon Sep 17 00:00:00 2001 From: Jon Sterling Date: Sun, 15 Feb 2026 18:15:06 +0000 Subject: [PATCH] Make some functions static --- Sources/AquaKit/Scroll Views/AquaScrollState.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/AquaKit/Scroll Views/AquaScrollState.swift b/Sources/AquaKit/Scroll Views/AquaScrollState.swift index 60288bb..4b51bd3 100644 --- a/Sources/AquaKit/Scroll Views/AquaScrollState.swift +++ b/Sources/AquaKit/Scroll Views/AquaScrollState.swift @@ -24,10 +24,10 @@ public struct AquaScrollState { } public var verticalOverscroll: CGFloat { - absoluteExcess(of: scrollPosition.y, in: 0..) -> CGFloat { + public static func absoluteExcess(of position: CGFloat, in range: Range) -> CGFloat { if position < range.lowerBound { range.lowerBound - position } else if position > range.upperBound { @@ -37,7 +37,7 @@ public struct AquaScrollState { } } - public func absoluteExcess(of point: NSPoint, in size: NSSize) -> NSSize { + public static func absoluteExcess(of point: NSPoint, in size: NSSize) -> NSSize { NSSize( width: absoluteExcess(of: point.x, in: 0..