uinavigationcontroller

Navigation View background Color

旧巷老猫 提交于 2020-08-09 09:05:21
问题 I'm try to set a background color on my SwiftUi List, as for my post here: SwiftUI Background List color I found a solution inserting the following code as init() init() { UITableView.appearance().backgroundColor = UIColor.clear UITableViewCell.appearance().backgroundColor = .clear } my issue now is ... as soon I insert a Navigation Link the background color again became white. how to set the color to .clear to the NavigationView? I have tried to .foregroundColor(.clear) but noting... what I

Navigation View background Color

泪湿孤枕 提交于 2020-08-09 09:04:51
问题 I'm try to set a background color on my SwiftUi List, as for my post here: SwiftUI Background List color I found a solution inserting the following code as init() init() { UITableView.appearance().backgroundColor = UIColor.clear UITableViewCell.appearance().backgroundColor = .clear } my issue now is ... as soon I insert a Navigation Link the background color again became white. how to set the color to .clear to the NavigationView? I have tried to .foregroundColor(.clear) but noting... what I

difference between navigationBar.isHidden and setNavigationBarHidden

 ̄綄美尐妖づ 提交于 2020-08-08 03:37:14
问题 I have view controller which I am pushing from a view controller where navigation bar is hidden. But I want to show the navigation bar in destination view controller. I tried with this statement it was not showing navigationBar. self.navigationController?.navigationBar.isHidden = false I tried this statement it is working self.navigationController?.setNavigationBarHidden(false, animated: true) I want to know what is difference? 回答1: Nope they are not the same, self.navigationController?