Skip to content

Commit

Permalink
Add explicit type
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Feb 19, 2024
1 parent 2a2d4c6 commit 358f061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Layout/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
_ views: [UIView]
) -> Layout {
guard views.count >= 2,
let first = views.first
let first: UIView = views.first
else { return self }
for view in views.dropFirst() {
adding(view.constraints(to: attributes, of: first))
Expand Down Expand Up @@ -587,7 +587,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
alignment: YAxisAttribute...
) -> Layout {
guard views.count >= 2,
let first = views.first
let first: UIView = views.first
else { return self }
switch direction {
case .leadingToTrailing:
Expand Down Expand Up @@ -633,7 +633,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
alignment: XAxisAttribute...
) -> Layout {
guard views.count >= 2,
let first = views.first
let first: UIView = views.first
else { return self }
var anchor: NSLayoutYAxisAnchor = first.bottom
for view in views.dropFirst() {
Expand Down

0 comments on commit 358f061

Please sign in to comment.