Post

Replies

Boosts

Views

Activity

UIImagePickerController Navigationbar color
Hello Apple Platform developers. I am currently struggling with problem within the UIImagePickerController. The Navigationbar background color is somehow has no color (this appear only on the latest iOS version). Are there some kinda problem within the UIImagePickerController API? here's how I instantiate the UIImagePIckerController         let picker = UIImagePickerController()         picker.sourceType = .photoLibrary         picker.navigationBar.isTranslucent = false         picker.navigationBar.barTintColor = .blue         picker.delegate = self         picker.modalPresentationStyle = .fullScreen         if #available (iOS 13, *) { //            let barAppearance = UINavigationBarAppearance() //            barAppearance.configureWithDefaultBackground() //            barAppearance.backgroundColor = .red //            picker.navigationBar.standardAppearance = barAppearance //            picker.navigationBar.scrollEdgeAppearance = barAppearance             let barA = UINavigationBar.appearance()             barA.tintColor = .systemPink         }         return picker     }() as you can see, I tried to change the color and it does not appear to fix the problem here's the problem visualization how it supposed to look like there's should be like a sticky white header
0
0
534
Jun ’22
Playing with Navigation View on the new Swift Playground App
Hello, i am fairly new to Swift Playground App. So I wanted to do navigation like in the iOS or Navigation in UIKit. My expectation when using NavigationView is well navigate to another view. Turns out, when implementing navigation view in Playground (or perhaps this is the default iPad navigation view) it look like this : Initial launch : After i click back it display the root navigationview but it shows it on the side : and it initial launch is not the main/root view like in UINavigationView but it navigates to a blank view Are there a way to disable it? i dont think i have enough time to emulate all of this in uikit The code :     @AppStorage(megaMendungKey) var isMegaAvail: Bool = false     @AppStorage(kawungKey) var isKawungAvail: Bool = false     @AppStorage(simbutKey) var isSimbutAvail: Bool = false     var body: some View {         ZStack {             NavigationView{                 Rectangle()             }         }     } }
3
0
1.6k
Apr ’22