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 3a429f6 commit a806459Copy full SHA for a806459
Sources/OpenTDS/Component/Button/Toolbar/ToolbarButton+Ext.swift
@@ -7,7 +7,11 @@ public struct TossToolbarButtonBuilder {
7
components
8
}
9
10
- public static func buildOptional(_ components: [TossToolbarButton]?) -> [TossToolbarButton]? {
11
- return components ?? nil
+ public static func buildOptional(_ component: TossToolbarButton?) -> [TossToolbarButton]? {
+ if let component {
12
+ return [component]
13
+ } else {
14
+ return nil
15
+ }
16
17
0 commit comments