We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99aa98d commit 1f68c16Copy full SHA for 1f68c16
Sources/OpenTDS/Component/Button/Toolbar/ToolbarButton+Ext.swift
@@ -2,7 +2,12 @@ import SwiftUI
2
3
@resultBuilder
4
public struct TossToolbarButtonBuilder {
5
+
6
public static func buildBlock(_ components: TossToolbarButton...) -> [TossToolbarButton] {
7
components
8
}
9
10
+ static func buildOptional(_ component: TossToolbarButton?) -> TossToolbarButton? {
11
+ return component ?? nil
12
+ }
13
0 commit comments