From af528a30ebc3a78e4f641711320af6d994bb74bc Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Mon, 19 Feb 2024 12:38:48 -0800 Subject: [PATCH] Add explicit type --- Sources/Layout/LayoutItem.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Layout/LayoutItem.swift b/Sources/Layout/LayoutItem.swift index 6142ba51..9c87c1fc 100644 --- a/Sources/Layout/LayoutItem.swift +++ b/Sources/Layout/LayoutItem.swift @@ -343,7 +343,7 @@ extension LayoutItem { and trailing: NSLayoutXAxisAnchor ) -> LayoutItem { addingSuperviewConstraints { layoutItem in - if let superview = layoutItem.layoutItemView.superview { + if let superview: UIView = layoutItem.layoutItemView.superview { let guide: UILayoutGuide = { let guide: UILayoutGuide = .init() superview.addLayoutGuide(guide) @@ -399,7 +399,7 @@ extension LayoutItem { and bottom: NSLayoutYAxisAnchor ) -> LayoutItem { addingSuperviewConstraints { layoutItem in - if let superview = layoutItem.layoutItemView.superview { + if let superview: UIView = layoutItem.layoutItemView.superview { let guide: UILayoutGuide = { let guide: UILayoutGuide = .init() superview.addLayoutGuide(guide)