mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 16:54:12 +00:00
Force modal in modal dialogs to always have full size navigation bars. Issue #1301
This commit is contained in:
1 parent
cc93b2f8f1
commit
0e60c19338
4 files changed
+31
-6
No files matched your search
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// ModalNavigationController.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Maurice Parker on 11/16/19.
|
||||
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class ModalNavigationController: UINavigationController {
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
super.viewDidLayoutSubviews()
|
||||
|
||||
// This hack is to resolve https://github.com/brentsimmons/NetNewsWire/issues/1301
|
||||
let frame = navigationBar.frame
|
||||
navigationBar.frame = CGRect(x: frame.minX, y: frame.minY, width: frame.size.width, height: 64.0)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user