| 123456789101112131415161718192021222324252627282930 |
- /*
- * This file is part of the SDWebImage package.
- * (c) DreamPiggy <lizhuoli1126@126.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- import SwiftUI
- import SDWebImage
- class AppDelegate: NSObject, UIApplicationDelegate {
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
- // Insert code here to initialize your application
- SDImageCodersManager.shared.addCoder(SDImageAWebPCoder.shared)
- SDImageCodersManager.shared.addCoder(SDImageHEICCoder.shared)
- return true
- }
- }
- @main
- struct SDWebImage_Vision_DemoApp: App {
- @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
-
- var body: some Scene {
- WindowGroup {
- ContentView()
- }
- }
- }
|