mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Replace URLImage with AsyncImage
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
import SwiftUI
|
||||
import URLImage
|
||||
import URLImageStore
|
||||
|
||||
@main
|
||||
struct PearvidiousApp: App {
|
||||
var body: some Scene {
|
||||
let urlImageService = URLImageService(fileStore: URLImageFileStore(),
|
||||
inMemoryStore: URLImageInMemoryStore())
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
.environment(\.urlImageService, urlImageService)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
20
Shared/VideoView.swift
Normal file
20
Shared/VideoView.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// VideoView.swift
|
||||
// VideoView
|
||||
//
|
||||
// Created by Arkadiusz Fal on 26/07/2021.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct VideoView: View {
|
||||
var body: some View {
|
||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
||||
}
|
||||
}
|
||||
|
||||
struct VideoView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
VideoView()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user