Post

Replies

Boosts

Views

Activity

Unknown Sigabrt Crash from App Store Connect Submission
I submitted an ios app to App Store Connect and get this exception error. Not sure what it is. I submitted via EAS and expo and didn't have any build or submissions error. Upon review, the app store team sent me back this crash report. What is the easiest way to troubleshoot App Store Connect errors? crashlog-839A9540-BA5D-4A28-BF58-AB326B5C5313.txt
1
0
895
Oct ’22
SwiftUI Conditional UINavigationBarAppearance Based on what View.swift
In my AppDelegate.swift I'm trying to get the NavigationView UIColor to change when its not at the parent level (defined as on MainPageView). i.e. on the MainPageView.swift where the NavigationView is defined- the color is green and when I click through to the next page the color will be "beige". However I'm not sure how to make conditional color changes based on what View.swift I'm in. swift      let condition = false     let appearance = UINavigationBarAppearance()     appearance.configureWithOpaqueBackground()     appearance.backgroundColor = condition ? UIColor( colorLiteral(red: 0.0862745098, green: 0.7803921569, blue: 0.6039215686, alpha: 1)) : UIColor( colorLiteral(red: 0.8549019694, green: 0.250980407, blue: 0.4784313738, alpha: 1)) For example when I was on my MainPageView.swift where the NavigationView is defined I tried using swift if MainPageView() { condition == false } else { condition == true } but obviously you can't make struct's a bool so I'm not sure how to do this.
1
0
610
May ’21