I can't access the Initializer in my Swift code.
I always get the error:
Cannot find 'NotifierManager' in scopeCannot find 'NotificationPlatformConfigurationIos' in scope
I don't get what I'm doing wrong. Android is working well.
// iOSApp.swift
import SwiftUI
import shared
class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// NotifierManager.shared.initialize(configuration: NotificationPlatformConfigurationIos.shared) // Not working
return true
}
}
@main
struct iOSApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Hi,
I'm in a KMP Project (without Compose Multiplatform). My Repository(https://github.com/philippschadt/KMPNotifierApp).
I can't access the Initializer in my Swift code. I always get the error:
Cannot find 'NotifierManager' in scope
Cannot find 'NotificationPlatformConfigurationIos' in scope
I don't get what I'm doing wrong. Android is working well.