mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-18 05:00:35 +00:00
16 lines
385 B
Swift
16 lines
385 B
Swift
|
import SwiftUI
|
||
|
import Network
|
||
|
|
||
|
@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)
|
||
|
}
|
||
|
}
|