add fallback btn + fix find wallpapers button

This commit is contained in:
leminlimez committed 2025-06-02 13:36:50 -04:00
1 parent d6e736637f
commit 9d24867f49
2 files changed
+17 -7

No files matched your search

@@ -10,7 +10,7 @@ import ZIPFoundation
import UIKit
class PosterBoardManager {
static let ShortcutURL = "https://www.icloud.com/shortcuts/9035ef1d51c247dba8c9861dc10b4aa7"
static let ShortcutURL = "https://www.icloud.com/shortcuts/a28d2c02ca11453cb5b8f91c12cfa692"
static let WallpapersURL = "https://cowabun.ga/wallpapers"
private static func unzipFile(at url: URL) throws -> URL {
+16 -6
View File
@@ -61,14 +61,24 @@ struct SettingsView: View {
// MARK: Links
Section {
Link(destination: URL(string: PosterBoardManager.ShortcutURL)!) {
Text("Download Shortcut")
if let scURL = URL(string: PosterBoardManager.ShortcutURL) {
Link(destination: scURL) {
Text("Download Shortcut")
}
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
}
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
Link(destination: URL(string: PosterBoardManager.ShortcutURL)!) {
Text("Find Wallpapers")
if let fbURL = URL(string: "shortcuts://run-shortcut?name=PosterBoard&input=text&text=troubleshoot") {
Link(destination: fbURL) {
Text("Create Fallback Method")
}
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
}
if let wpURL = URL(string: PosterBoardManager.WallpapersURL) {
Link(destination: wpURL) {
Text("Find Wallpapers")
}
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
}
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
} header: {
Text("Links")
}