From 7be6a0fd2771525e09c3eaf6987637c099cb6960 Mon Sep 17 00:00:00 2001 From: Keita Watanabe Date: Mon, 15 Jul 2024 16:17:23 +0900 Subject: [PATCH] change `some` to `any` --- Sources/LayoutAnchoring.swift | 4 ++-- Sources/Position.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/LayoutAnchoring.swift b/Sources/LayoutAnchoring.swift index 23afc88e..2798e94f 100644 --- a/Sources/LayoutAnchoring.swift +++ b/Sources/LayoutAnchoring.swift @@ -65,7 +65,7 @@ public extension FloatingPanelLayoutAnchor { } } - private func layoutConstraints(_ layoutGuide: some LayoutGuideProvider, for edgeAnchor: NSLayoutYAxisAnchor) -> [NSLayoutConstraint] { + private func layoutConstraints(_ layoutGuide: any LayoutGuideProvider, for edgeAnchor: NSLayoutYAxisAnchor) -> [NSLayoutConstraint] { switch referenceEdge { case .top: if isAbsolute { @@ -84,7 +84,7 @@ public extension FloatingPanelLayoutAnchor { } } - private func layoutConstraints(_ layoutGuide: some LayoutGuideProvider, for edgeAnchor: NSLayoutXAxisAnchor) -> [NSLayoutConstraint] { + private func layoutConstraints(_ layoutGuide: any LayoutGuideProvider, for edgeAnchor: NSLayoutXAxisAnchor) -> [NSLayoutConstraint] { switch referenceEdge { case .left: if isAbsolute { diff --git a/Sources/Position.swift b/Sources/Position.swift index d0e31902..ad0e1cfc 100644 --- a/Sources/Position.swift +++ b/Sources/Position.swift @@ -25,7 +25,7 @@ extension FloatingPanelPosition { } } - func mainDimensionAnchor(_ layoutGuide: some LayoutGuideProvider) -> NSLayoutDimension { + func mainDimensionAnchor(_ layoutGuide: any LayoutGuideProvider) -> NSLayoutDimension { switch self { case .top, .bottom: return layoutGuide.heightAnchor case .left, .right: return layoutGuide.widthAnchor