Skip to content

Commit

Permalink
Merge pull request #75 from Tap-Payments/FIX_Reduce_motion
Browse files Browse the repository at this point in the history
Prevent keyboard frame change handling when Reduce Motion is enabled
  • Loading branch information
OsamaRabie authored Dec 8, 2024
2 parents b0ca0a4 + 4d7013c commit 8e31106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goSellSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Pod::Spec.new do |goSellSDK|
goSellSDK.name = 'goSellSDK'
goSellSDK.summary = 'goSell SDK for iOS'
goSellSDK.requires_arc = true
goSellSDK.version = '2.3.42'
goSellSDK.version = '2.3.43'
goSellSDK.license = { :type => 'MIT', :file => 'LICENSE' }
goSellSDK.author = { 'Tap Payments' => 'hello@tap.company' }
goSellSDK.homepage = 'https://github.com/Tap-Payments/goSellSDK-iOS'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ internal class BaseViewController: UIViewController, LocalizationObserver, Layou
guard self.keyboardObserver == nil else { return }

self.keyboardObserver = NotificationCenter.default.addObserver(forName: .tap_keyboardWillChangeFrameNotificationName, object: nil, queue: .main) { [weak self] (notification) in

// Added to prevent animation in reduced motion enabled
if UIAccessibility.isReduceMotionEnabled { return }
self?.keyboardWillChangeFrame(notification)
}
}
Expand Down

0 comments on commit 8e31106

Please # to comment.