HomeiOS Developmentios - Localytics Inflicting Crash in SwiftUI - Couldn't solid worth of...

ios – Localytics Inflicting Crash in SwiftUI – Couldn’t solid worth of sort ‘LLAppDelegateProxy’ to ‘SwiftUI.AppDelegate’


I’ve a SwiftUI app and it makes use of Localytics for push notification. Just lately in a view I added .centered(), and when coming into this view, the app crashed with error “Couldn’t solid worth of sort ‘LLAppDelegateProxy’ to ‘SwiftUI.AppDelegate’“.

It is not an enormous downside if the crash occurs solely to .centered. What worries me is I might see this crash in different places with out understanding the basis trigger. Recognize on any thought on this challenge.

Right here is how my app and examine appears to be like like:

@foremost
struct MyApp: App {
  @UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
  ......
}
class AppDelegate: NSObject, UIApplicationDelegate {
  func utility(_ utility: UIApplication, willFinishLaunchingWithOptions launchOptions: LaunchOptions = nil) -> Bool {
    startLocalytics()
    true
  }
}
Struct MyView: View {
  @FocusState var isFocused: Bool
  var physique: some View {
    TextField(......)
      .centered($isFocused)
  }
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments