add fallback btn + fix find wallpapers button
This commit is contained in:
1 parent
d6e736637f
commit
9d24867f49
2 files changed
+13
-3
No files matched your search
@@ -10,7 +10,7 @@ import ZIPFoundation
|
|||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
class PosterBoardManager {
|
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"
|
static let WallpapersURL = "https://cowabun.ga/wallpapers"
|
||||||
|
|
||||||
private static func unzipFile(at url: URL) throws -> URL {
|
private static func unzipFile(at url: URL) throws -> URL {
|
||||||
|
|||||||
@@ -61,14 +61,24 @@ struct SettingsView: View {
|
|||||||
|
|
||||||
// MARK: Links
|
// MARK: Links
|
||||||
Section {
|
Section {
|
||||||
Link(destination: URL(string: PosterBoardManager.ShortcutURL)!) {
|
if let scURL = URL(string: PosterBoardManager.ShortcutURL) {
|
||||||
|
Link(destination: scURL) {
|
||||||
Text("Download Shortcut")
|
Text("Download Shortcut")
|
||||||
}
|
}
|
||||||
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
|
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
|
||||||
Link(destination: URL(string: PosterBoardManager.ShortcutURL)!) {
|
}
|
||||||
|
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")
|
Text("Find Wallpapers")
|
||||||
}
|
}
|
||||||
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
|
.buttonStyle(TintedButton(color: .blue, fullwidth: true))
|
||||||
|
}
|
||||||
} header: {
|
} header: {
|
||||||
Text("Links")
|
Text("Links")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user