Skip to content

Commit 6be5e5e

Browse files
authored
Corrected view.height to view.frame.height
1 parent 25afe89 commit 6be5e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ RxKeyboard.instance.frame
7272
```swift
7373
RxKeyboard.instance.visibleHeight
7474
.drive(onNext: { keyboardVisibleHeight in
75-
toolbar.frame.origin.y = self.view.height - toolbar.frame.height - keyboardVisibleHeight
75+
toolbar.frame.origin.y = self.view.frame.height - toolbar.frame.height - keyboardVisibleHeight
7676
})
7777
.disposed(by: disposeBag)
7878
```

0 commit comments

Comments
 (0)