Skip to content
Open

fix #22

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ForegroundNotification/Classes/ForegroundNotificationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class ForegroundNotificationView: UIView, UITextViewDelegate {

@IBAction func sendButtonTapped(_ sender: UIButton) {

if !textView.text.characters.isEmpty {
if !textView.text.isEmpty {

dismissNotification {

Expand Down Expand Up @@ -389,19 +389,19 @@ class ForegroundNotificationView: UIView, UITextViewDelegate {

//MARK: - Internal

func keyboardWillShow(notification: NSNotification) {
@objc func keyboardWillShow(notification: NSNotification) {
currentHeightForKeyboard = (notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue.size.height ?? 0
}

func keyboardWillHide() {
@objc func keyboardWillHide() {
currentHeightForKeyboard = 0
}

func dimmingViewTapped(tapRecognizer: UITapGestureRecognizer) {
@objc func dimmingViewTapped(tapRecognizer: UITapGestureRecognizer) {
dismissNotification()
}

func orientationDidChange() {
@objc func orientationDidChange() {

if extendingIsFinished {

Expand Down Expand Up @@ -476,7 +476,7 @@ class ForegroundNotificationView: UIView, UITextViewDelegate {
}
}

func dismissAfterTimer() {
@objc func dismissAfterTimer() {
dismissNotification()
}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pod "BSForegroundNotification"
If you used `use_framework` in your podfile just simply do:

```Swift
import ForegroundNotification
import BSForegroundNotification

```

Expand All @@ -32,7 +32,7 @@ for every file when you need to use it.
you may also use:

```Swift
@import ForegroundNotification
@import BSForegroundNotification

```
within **bridging header** file and avoid to import framework for every needed file.
Expand Down