yattee/Shared/PearvidiousApp.swift

16 lines
410 B
Swift
Raw Normal View History

2021-06-09 20:51:23 +00:00
import SwiftUI
2021-06-10 22:50:10 +00:00
import URLImage
import URLImageStore
2021-06-09 20:51:23 +00:00
@main
struct PearvidiousApp: App {
var body: some Scene {
2021-06-10 22:50:10 +00:00
let urlImageService = URLImageService(fileStore: URLImageFileStore(),
inMemoryStore: URLImageInMemoryStore())
2021-06-09 20:51:23 +00:00
WindowGroup {
ContentView()
2021-06-10 22:50:10 +00:00
.environment(\.urlImageService, urlImageService)
2021-06-09 20:51:23 +00:00
}
}
}