From 611805f492d75f14be1f13e759a1f7d88f625c71 Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Sat, 24 Feb 2024 09:17:05 -0800 Subject: [PATCH] Add explicit type --- Sources/Layout/Layout.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Layout/Layout.swift b/Sources/Layout/Layout.swift index a0f20114..f8e78ce4 100644 --- a/Sources/Layout/Layout.swift +++ b/Sources/Layout/Layout.swift @@ -424,7 +424,7 @@ public final class Layout { // swiftlint:disable:this type_body_length guard views.count >= 2, let first: UIView = views.first else { return self } - for view in views.dropFirst() { + for view: UIView in views.dropFirst() { adding(view.constraints(to: attributes, of: first)) } return self @@ -592,13 +592,13 @@ public final class Layout { // swiftlint:disable:this type_body_length switch direction { case .leadingToTrailing: var anchor: NSLayoutXAxisAnchor = first.trailing - for view in views.dropFirst() { + for view: UIView in views.dropFirst() { adding(view.leading.constraint(to: anchor, constant: spacing).withPriority(priority)) anchor = view.trailing } case .leftToRight: var anchor: NSLayoutXAxisAnchor = first.right - for view in views.dropFirst() { + for view: UIView in views.dropFirst() { adding(view.left.constraint(to: anchor, constant: spacing).withPriority(priority)) anchor = view.right } @@ -636,7 +636,7 @@ public final class Layout { // swiftlint:disable:this type_body_length let first: UIView = views.first else { return self } var anchor: NSLayoutYAxisAnchor = first.bottom - for view in views.dropFirst() { + for view: UIView in views.dropFirst() { adding(view.top.constraint(to: anchor, constant: spacing).withPriority(priority)) anchor = view.bottom }