Skip to content

Commit

Permalink
Fix 5.3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Aug 11, 2020
1 parent 8250172 commit b30d98b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Gala/Gala.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public func HorizontalSizeClasses<A: View>(_ name: String? = nil, @ViewBuilder i
.environment(\.horizontalSizeClass, item)
}
#else
ForEach([UserInterfaceSizeClass.compact, .regular], id: \.self) { item in
return ForEach([UserInterfaceSizeClass.compact, .regular], id: \.self) { item in
items()
.previewDisplayName(name.map { "\($0) \(item)" } ?? "\(item)")
.environment(\.horizontalSizeClass, item)
Expand All @@ -52,7 +52,7 @@ public func VerticalSizeClasses<A: View>(_ name: String? = nil, @ViewBuilder ite
.environment(\.verticalSizeClass, item)
}
#else
ForEach([UserInterfaceSizeClass.compact, .regular], id: \.self) { item in
return ForEach([UserInterfaceSizeClass.compact, .regular], id: \.self) { item in
items()
.previewDisplayName(name.map { "\($0) \(item)" } ?? "\(item)")
.environment(\.verticalSizeClass, item)
Expand All @@ -78,7 +78,7 @@ public func LegibilityWeights<A: View>(_ name: String? = nil, @ViewBuilder items
.environment(\.legibilityWeight, item)
}
#else
ForEach([LegibilityWeight.regular, .bold], id: \.self) { item in
return ForEach([LegibilityWeight.regular, .bold], id: \.self) { item in
items()
.previewDisplayName(name.map { "\($0) \(item)" } ?? "\(item)")
.environment(\.legibilityWeight, item)
Expand Down

0 comments on commit b30d98b

Please sign in to comment.