Thanks for the response. I already have a check for that:
GeometryReader { geometry in
let adWidth = geometry.size.width == 0 ? geometry.size.height : geometry.size.width
NavigationStack {
if adWidth > 0 {
AdView(adWidth: adWidth)
}
So it's not crashing because of that. I'll put an error message in the main thread.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: