diff --git a/Nuage/Views/InfiniteView/InfiniteList.swift b/Nuage/Views/InfiniteView/InfiniteList.swift index c97c440..57af359 100644 --- a/Nuage/Views/InfiniteView/InfiniteList.swift +++ b/Nuage/Views/InfiniteView/InfiniteList.swift @@ -85,17 +85,7 @@ struct InfiniteList: View extension View { func header(@ViewBuilder _ content: () -> Content) -> some View { - self.modifier(InfiniteListHeader(header: content())) - } - -} - -struct InfiniteListHeader: ViewModifier { - - var header: Header - - func body(content: Content) -> some View { - content.environment(\.header, AnyView(header)) + self.environment(\.header, AnyView(content())) } }