Skip to content

Commit 6b4dfcf

Browse files
author
Vitor Silveira
committed
#188: Make the method only executable on iOS
1 parent 066a977 commit 6b4dfcf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Sources/UIKitBackend/UIKitBackend+Control.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,17 @@ extension UIKitBackend {
317317
} else {
318318
textEditorWidget.child.inputAccessoryView = nil
319319
}
320-
#endif
321320

322-
textEditorWidget.child.alwaysBounceVertical = environment.scrollDismissesKeyboardMode != .never
323-
textEditorWidget.child.keyboardDismissMode = switch environment.scrollDismissesKeyboardMode {
324-
case .immediately:
325-
textEditorWidget.child.inputAccessoryView == nil ? .onDrag : .onDragWithAccessory
326-
case .interactively:
327-
textEditorWidget.child.inputAccessoryView == nil ? .interactive : .interactiveWithAccessory
328-
case .never:
329-
.none
330-
}
321+
textEditorWidget.child.alwaysBounceVertical = environment.scrollDismissesKeyboardMode != .never
322+
textEditorWidget.child.keyboardDismissMode = switch environment.scrollDismissesKeyboardMode {
323+
case .immediately:
324+
textEditorWidget.child.inputAccessoryView == nil ? .onDrag : .onDragWithAccessory
325+
case .interactively:
326+
textEditorWidget.child.inputAccessoryView == nil ? .interactive : .interactiveWithAccessory
327+
case .never:
328+
.none
329+
}
330+
#endif
331331
}
332332

333333
public func setContent(ofTextEditor textEditor: Widget, to content: String) {

0 commit comments

Comments
 (0)