IceCubesApp/Packages/Env/Sources/Env/PreviewEnv.swift
Thomas Ricouard 058500f91e Swiftformat .
2024-03-11 09:05:52 +01:00

16 lines
398 B
Swift

import Network
import SwiftUI
@MainActor
public extension View {
func withPreviewsEnv() -> some View {
environment(RouterPath())
.environment(Client(server: ""))
.environment(CurrentAccount.shared)
.environment(UserPreferences.shared)
.environment(CurrentInstance.shared)
.environment(PushNotificationsService.shared)
.environment(QuickLook.shared)
}
}