Skip to content

Commit 0d6f2f1

Browse files
committed
Remove void
1 parent 87a91e5 commit 0d6f2f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/RxKeyboard/RxKeyboard.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public class RxKeyboard: NSObject, RxKeyboardType {
126126
self.panRecognizer.delegate = self
127127

128128
UIApplication.rx.didFinishLaunching
129-
.map { _ in Void() }
130-
.startWith(Void()) // when RxKeyboard is initialized before UIApplication.window is created
129+
.map { _ in () }
130+
.startWith(()) // when RxKeyboard is initialized before UIApplication.window is created
131131
.subscribe(onNext: { _ in
132132
UIApplication.shared.windows.first?.addGestureRecognizer(self.panRecognizer)
133133
})

0 commit comments

Comments
 (0)