Post not yet marked as solved
Seeing the same thing. I can't run our app in the simulator because it happens on startup. Disabling backtrace reporting got me back in action though. Thanks @sjs!
Post not yet marked as solved
I've been seeing the same issue occasionally since iOS 13. Typically after doing something like:
Present UIViewController that uses UIHostingController
Dismiss
Present again
Crash
But also sometimes on the first presentation. It will happen one or two times in a row, then disappear for days. Seems random.
Post not yet marked as solved
Better answer than the one linked above is here: https://stackoverflow.com/questions/56505528/swiftui-update-navigation-bar-title-colorBasically, just create a dummy UIViewControllerRepresentable and use that UIViewController's navigationController property to configure the bar how you like.
Post not yet marked as solved
I don't believe joav understood your question correctly. I found one solution and posted it here: https://forums.developer.apple.com/thread/118261Have you found any better method?
Post not yet marked as solved
I've attempted to place a flexible UIView above my View in a Zstack. This does allow me to find my View's position on the screen, but seems like a hack. Code here: gist.github.com/timothycosta/2caf5f1a1c175ffa966f098e3299581b
Post not yet marked as solved
I've filed feedback on this. The more people who do that the better.
Post not yet marked as solved
It seems obvious now that `@State` was the wrong idea. A wrapper of some other type was needed instead. I was able to get around this issue by using the following:@propertyDelegate
class ReferenceValue {
var value: Value
init(initialValue: Value) {
self.value = initialValue
}
}and then@ReferenceValue var width: CGFloat = 0 // Save this from the GeometryProxy during layoutI would be curious to know whether there is a more idiomatic way to do this though.
I had the same issue. I resolved it by:Clean build folderClose the project/workspace`pod deintegrate``rm -rf my_project.xcworkspace`Create a new workspace *manually* and add my projectIn root of Podfile add `install! 'cocoapods', :integrate_targets => false`In each target add `current_target_definition.swift_version = '5.0'` # Works around a bug when using 'integrate_targets => false`pod install`Add Pods.xcproject to my workspaceThe first time I ran my build after this the extension disappeared from settings, but another clean build fixed everything up.