Skip to content

Instantly share code, notes, and snippets.

@lutes1
Created August 21, 2022 12:56
Show Gist options
  • Save lutes1/2e69b8a70c1ff1e06829de8a5d2a4711 to your computer and use it in GitHub Desktop.
Save lutes1/2e69b8a70c1ff1e06829de8a5d2a4711 to your computer and use it in GitHub Desktop.
extension HeaderView where LeftControls == EmptyView {
init(viewModel: HeaderViewModel, @ViewBuilder rightControls: @escaping () -> RightControls) {
self.init(viewModel: viewModel, leftControls: { EmptyView() }, rightControls: rightControls)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment