Skip to content

Commit

Permalink
Discarded Notification Center Observer?
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Kribs committed Sep 22, 2023
1 parent 73c9103 commit 9afb5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/Components/AlphaPicker/AlphaPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class OrientationManager: ObservableObject {
@Published var showAlphaPicker = (CGFloat(26) * 21) <= UIScreen.main.bounds.height

init() {
NotificationCenter.default.addObserver(forName: UIDevice.orientationDidChangeNotification, object: nil, queue: .main) { _ in
let orientationManagerResults = NotificationCenter.default.addObserver(forName: UIDevice.orientationDidChangeNotification, object: nil, queue: .main) { _ in
self.showAlphaPicker = (CGFloat(26) * 21) <= UIScreen.main.bounds.height
}
}
Expand Down

0 comments on commit 9afb5e0

Please sign in to comment.