From 81e2ec7a90d8fb5232e9191136161140459e9ca5 Mon Sep 17 00:00:00 2001 From: Ian Keen Date: Wed, 20 Oct 2021 08:02:58 -0700 Subject: [PATCH] Add missing `@ViewBuilder` --- Sources/WrappingHStack/WrappingHStack.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WrappingHStack/WrappingHStack.swift b/Sources/WrappingHStack/WrappingHStack.swift index 687dc2b..447c070 100644 --- a/Sources/WrappingHStack/WrappingHStack.swift +++ b/Sources/WrappingHStack/WrappingHStack.swift @@ -93,7 +93,7 @@ public extension WrappingHStack { /// `.dynamicIncludingBorders` to fill the full width with equal spacing /// between items and from the items to the border. /// - content: The content and behavior of the view. - init(_ data: Data, id: KeyPath = \.self, alignment: HorizontalAlignment = .leading, spacing: Spacing = .constant(8), content: @escaping (Data.Element) -> Content) { + init(_ data: Data, id: KeyPath = \.self, alignment: HorizontalAlignment = .leading, spacing: Spacing = .constant(8), @ViewBuilder content: @escaping (Data.Element) -> Content) { self.spacing = spacing self.alignment = alignment self.items = data.map { Self.viewType(from: content($0[keyPath: id])) }