From d6ad75eb348203f52ace47c8cfa6283531dbd6f8 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 44db9bcf..a3710db8 100644 --- a/Sources/LayoutAnchoring.swift +++ b/Sources/LayoutAnchoring.swift @@ -66,7 +66,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 { @@ -85,7 +85,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 44a99e7d..2c7c1317 100644 --- a/Sources/Position.swift +++ b/Sources/Position.swift @@ -26,7 +26,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