File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Sources/KeyboardToolbar/Views Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,17 @@ private extension KeyboardToolButton {
127
127
toolPickerBackgroundView. fillColor = toolPickerBackgroundColor
128
128
UIDevice . current. playInputClick ( )
129
129
cancelToolPickerTimer ( )
130
- guard !item. allTools. isEmpty else {
130
+ let shouldPresentPicker = item. style == . primary || !item. allTools. isEmpty
131
+ guard shouldPresentPicker else {
131
132
return
132
133
}
133
134
setContentHidden ( true )
134
135
feedbackGenerator. prepare ( )
135
136
if showToolPickerDelay > 0 {
136
137
presentToolPicker ( with: [ item. representativeTool] , atSize: . large)
137
- schedulePresentingAllTools ( )
138
+ if !item. allTools. isEmpty {
139
+ schedulePresentingAllTools ( )
140
+ }
138
141
} else {
139
142
presentToolPicker ( with: item. allTools, atSize: . large)
140
143
}
You can’t perform that action at this time.
0 commit comments