Skip to content

Commit

Permalink
Changed 'didChangeStatusBarOrientationNotification' to 'UIDevice.orie…
Browse files Browse the repository at this point in the history
…ntationDidChangeNotification' due to deprecation.
  • Loading branch information
Mahmudul Hasan committed Sep 8, 2022
1 parent fb128e0 commit f43a0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Layout/MessagesCollectionViewFlowLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ open class MessagesCollectionViewFlowLayout: UICollectionViewFlowLayout {
NotificationCenter.default.addObserver(
self,
selector: #selector(MessagesCollectionViewFlowLayout.handleOrientationChange(_:)),
name: UIApplication.didChangeStatusBarOrientationNotification,
name: UIDevice.orientationDidChangeNotification,
object: nil)
}

Expand Down

0 comments on commit f43a0f4

Please sign in to comment.