Merge pull request #481 from XcodesOrg/matt/sponsorLink

Add Sponsor/Donate Button
This commit is contained in:
Matt Kiazyk 2024-01-23 21:58:45 -06:00 committed by GitHub
commit 7686620b1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

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