Skip to content

Commit 476db7c

Browse files
authored
InputTextView: make becomeFirstResponder notification name public (#138)
1 parent 2a7fbad commit 476db7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/StreamChatSwiftUI/Utils/Common/InputTextView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class InputTextView: UITextView, AccessibilityView {
6666
NotificationCenter.default.addObserver(
6767
self,
6868
selector: #selector(becomeFirstResponder),
69-
name: NSNotification.Name(firstResponderNotification),
69+
name: NSNotification.Name(getStreamFirstResponderNotification),
7070
object: nil
7171
)
7272
}

Sources/StreamChatSwiftUI/Utils/KeyboardHandling.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ func resignFirstResponder() {
9090
)
9191
}
9292

93-
let firstResponderNotification = "io.getstream.inputView.becomeFirstResponder"
93+
public let getStreamFirstResponderNotification = "io.getstream.inputView.becomeFirstResponder"
9494

9595
func becomeFirstResponder() {
9696
NotificationCenter.default.post(
97-
name: NSNotification.Name(firstResponderNotification),
97+
name: NSNotification.Name(getStreamFirstResponderNotification),
9898
object: nil
9999
)
100100
}

0 commit comments

Comments
 (0)