Add Sponsor Button

This commit is contained in:
Matt Kiazyk 2024-01-19 15:36:18 -06:00
parent 159f1caa5c
commit 99c4b49f28
3 changed files with 24 additions and 3 deletions

View file

@ -45,9 +45,18 @@ struct AboutView: View {
}
.buttonStyle(LinkButtonStyle())
}
Text(Bundle.main.humanReadableCopyright!)
.font(.footnote)
HStack {
Text(Bundle.main.humanReadableCopyright!)
.font(.footnote)
Button(action: {
openURL(URL(string: "https://opencollective.com/xcodesapp")!)
}) {
HStack {
Image(systemName: "heart.circle")
Text("SponsorXcodes")
}
}
}
}
}
.padding()

View file

@ -11,6 +11,7 @@ import SwiftUI
struct BottomStatusModifier: ViewModifier {
@EnvironmentObject var appState: AppState
@SwiftUI.Environment(\.openURL) var openURL: OpenURLAction
func body(content: Content) -> some View {
VStack(spacing: 0) {
@ -21,6 +22,14 @@ struct BottomStatusModifier: ViewModifier {
Text(appState.bottomStatusBarMessage)
.font(.subheadline)
Spacer()
Button(action: {
openURL(URL(string: "https://opencollective.com/xcodesapp")!)
}) {
HStack {
Image(systemName: "heart.circle")
Text("SponsorXcodes")
}
}
Text(Bundle.main.shortVersion!)
.font(.subheadline)
}

View file

@ -17251,6 +17251,9 @@
}
}
},
"SponsorXcodes" : {
"extractionState" : "manual"
},
"StopInstallation" : {
"localizations" : {
"ca" : {