mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Merge pull request #481 from XcodesOrg/matt/sponsorLink
Add Sponsor/Donate Button
This commit is contained in:
commit
7686620b1e
3 changed files with 24 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17359,6 +17359,9 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"SponsorXcodes" : {
|
||||
"extractionState" : "manual"
|
||||
},
|
||||
"StopInstallation" : {
|
||||
"localizations" : {
|
||||
"ca" : {
|
||||
|
|
|
|||
Loading…
Reference in a new issue