in ios Don't show
liuhongjian0316 opened this issue · comments
Try this out inside Xcode
import Foundation
import UIKit
import Lottie
class AppDelegate : NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
LottieConfiguration.shared.renderingEngine = .mainThread
return true
}
}
import SwiftUI
@main
struct iOSApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}