Fix ambiguous ToolbarView init
This commit is contained in:
parent
667400ea71
commit
6950051bae
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ extension ToolbarView {
|
|||
/// - bottom: A closure producing widgets to add as bottom bars.
|
||||
public init(
|
||||
@ViewBuilder content: () -> [AnyView],
|
||||
@ViewBuilder top: () -> [AnyView] = { [] },
|
||||
@ViewBuilder bottom: () -> [AnyView] = { [] }
|
||||
@ViewBuilder top: () -> [AnyView],
|
||||
@ViewBuilder bottom: () -> [AnyView]
|
||||
) {
|
||||
let contentViews = content()
|
||||
let topViews = top()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue