Skip to content
Snippets Groups Projects
Commit b7f64cd8 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

Fixed errors.

parent 8b2e25c3
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ public class WhiteNavigationBarBlur: UIVisualEffectView {
for subsubview in subview.subviews {
if subsubview.isMember(of: UILabel.self) {
let subviewName = String(describing: subview.self)
if !subviewName.contains(find: "Large") {
if !subviewName.contains("Large") {
self.centerLabelSuperview = subsubview.superview
}
}
......@@ -57,7 +57,7 @@ public class WhiteNavigationBarBlur: UIVisualEffectView {
self.whiteView.frame = self.contentView.bounds
navigationBar.sendSubviewToBack(self)
navigationBar.sendSubview(toBack: self)
}
}
......
......@@ -24,7 +24,7 @@ open class WhiteNavigationController: UINavigationController {
self.navigationBar.setBackgroundImage(UIImage(), for: .default)
self.navigationBar.addSubview(self.barBlur!)
NotificationCenter.default.addObserver(self, selector: #selector(deviceOrientationDidChange), name: UIDevice.orientationDidChangeNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(deviceOrientationDidChange), name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil)
}
override open func viewWillAppear(_ animated: Bool) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment