Skip to content

Commit

Permalink
Remove keyboard hiding on dismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
f3dm76 committed Jan 24, 2024
1 parent 4e64eb6 commit d34361f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion ExytePopupView.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ExytePopupView"
s.version = "2.8.3"
s.version = "2.8.4"
s.summary = "SwiftUI library for toasts, alerts and popups"
s.homepage = 'https://github.com/exyte/PopupView.git'
s.license = 'MIT'
Expand Down
1 change: 0 additions & 1 deletion Source/FullscreenPopup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ public struct FullscreenPopup<Item: Equatable, PopupContent: View>: ViewModifier
showContent = true // immediately load popup body
// shouldShowContent is set after popup's frame is calculated, see positionIsCalculatedCallback
} else {
hideKeyboard()
closingIsInProcess = true
userWillDismissCallback(dismissSource ?? .binding)
dispatchWorkHolder.work?.cancel()
Expand Down
7 changes: 0 additions & 7 deletions Source/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,6 @@ class KeyboardHeightHelper: ObservableObject {

// MARK: - Hide keyboard

func hideKeyboard() {
#if os(iOS)
UIApplication.shared
.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
#endif
}

extension CGPoint {

static var pointFarAwayFromScreen: CGPoint {
Expand Down

0 comments on commit d34361f

Please sign in to comment.