Files
WhiteNights_iOS/WhiteNights/WhiteNightsApp.swift
15lu.akari a87a3d12ab big update
2025-08-26 23:37:39 +03:00

21 lines
485 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import SwiftUI
import SDWebImageSVGCoder // <-- импортируем SVG кодер
@main
struct WhiteNightsApp: App {
@StateObject private var appState = AppState()
init() {
// Регистрируем SVG кодер
let svgCoder = SDImageSVGCoder.shared
SDImageCodersManager.shared.addCoder(svgCoder)
}
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(appState)
}
}
}