SDWebImage/Examples/SDWebImage Vision Demo/App.swift

31 lines
902 B
Swift
Raw Permalink Normal View History

/*
* 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()
}
}
}