Skip to content

Commit

Permalink
Merge pull request #8 from sergeykhliustin/fix/fullscreen_mode
Browse files Browse the repository at this point in the history
Fixed fullscreen mode
  • Loading branch information
sergiikhliustin authored Dec 5, 2022
2 parents 1c2fddc + 245ef0d commit bee91b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct SplitNavigationView<Content: Screen>: UIViewControllerRepresentable {
} else {
navigator.navigationController?.mode = .primaryOnly
}
navigator.navigationController?.setNavigationBarHidden(fullscreen.wrappedValue, animated: true)

navigator.navigationController?.updateTheme(theme)
}
Expand Down Expand Up @@ -110,6 +111,11 @@ final class SplitNavigationController: UIViewController {
self.secondaryNavigationController = Self.navigationController(EmptyViewController())
super.init(nibName: nil, bundle: nil)
}

func setNavigationBarHidden(_ hidden: Bool, animated: Bool) {
primaryNavigationController.setNavigationBarHidden(hidden, animated: animated)
secondaryNavigationController.setNavigationBarHidden(hidden, animated: animated)
}

func push(_ controller: UIViewController, animated: Bool = true, shouldReplace: Bool) {
switch mode {
Expand Down
1 change: 0 additions & 1 deletion Modules/BuildioUI/Sources/BuildioUI/UI/Logs/LogsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ struct LogsView: View {
}
}
.frame(maxHeight: .infinity)
.navigationBarHidden(fullscreen.wrappedValue)
.onAppear {
fullscreen.wrappedValue = false
}
Expand Down

0 comments on commit bee91b4

Please sign in to comment.