DEBUG: explore link changing

This commit is contained in:
leminlimez committed 2025-07-15 11:30:47 -04:00
1 parent 9687a8f19d
commit 5a94ea73d9
4 files changed
+37 -3

No files matched your search

@@ -11,8 +11,17 @@ struct ExploreView: View {
@State private var isLoading = true
@State private var error: Error? = nil
#if DEBUG
@AppStorage("exploreLink") var exploreLink: String = DownloadManager.exploreLink
#endif
var body: some View {
ZStack {
#if DEBUG
let websiteURL = URL(string: exploreLink)
#else
let websiteURL = URL(string: DownloadManager.exploreLink)
#endif
if let error = error {
VStack {
Text(error.localizedDescription)
@@ -24,7 +33,7 @@ struct ExploreView: View {
Text("Retry")
}
}
} else if let url = URL(string: "https://cowabun.ga/wallpapers?pocketposter=true") {
} else if let url = websiteURL {
WallpaperWebView(url, isLoading: $isLoading, error: $error)
if isLoading {
ProgressView()