IceCubesApp/Packages/Env/Sources/Env/PreviewEnv.swift

16 lines
398 B
Swift
Raw Normal View History

import Network
2024-03-11 08:05:52 +00:00
import SwiftUI
@MainActor
public extension View {
2024-03-11 08:05:52 +00:00
func withPreviewsEnv() -> some View {
environment(RouterPath())
2024-03-11 08:05:52 +00:00
.environment(Client(server: ""))
.environment(CurrentAccount.shared)
.environment(UserPreferences.shared)
.environment(CurrentInstance.shared)
.environment(PushNotificationsService.shared)
.environment(QuickLook.shared)
}
}