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

+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")
}