mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
54 lines
1.9 KiB
Swift
54 lines
1.9 KiB
Swift
import SwiftUI
|
|
|
|
struct CommonIssuesTipView: View {
|
|
var onDismiss: () -> Void
|
|
|
|
var body: some View {
|
|
Section {
|
|
HStack(spacing: 15) {
|
|
Image(systemName: "exclamationmark.bubble")
|
|
.font(.title)
|
|
.foregroundColor(.gray)
|
|
|
|
VStack(alignment: .leading, spacing: 3) {
|
|
VStack(alignment: .leading) {
|
|
Text("common_issues_tip_title".localized)
|
|
.font(.headline)
|
|
}
|
|
|
|
Link(
|
|
destination: URL(
|
|
string: "https://github.com/whoeevee/EeveeSpotifyReborn/blob/swift/common_issues.md"
|
|
)!,
|
|
label: {
|
|
VStack {
|
|
Text("\("common_issues_tip_message".localized) ")
|
|
.foregroundColor(.white)
|
|
|
|
+ Text("common_issues_tip_button".localized)
|
|
.foregroundColor(EeveeSettingsView.spotifyAccentColor)
|
|
|
|
+ Text(".")
|
|
.foregroundColor(.white)
|
|
}
|
|
.font(.subheadline)
|
|
}
|
|
)
|
|
}
|
|
|
|
Spacer()
|
|
|
|
Button {
|
|
onDismiss()
|
|
} label: {
|
|
Image(systemName: "xmark")
|
|
.font(.headline)
|
|
.foregroundColor(Color(UIColor.systemGray2))
|
|
}
|
|
.buttonStyle(PlainButtonStyle())
|
|
}
|
|
.padding(.vertical, 5)
|
|
}
|
|
}
|
|
}
|