Files
EeveeSpotifyReborn/Sources/EeveeSpotify/Settings/Views/CommonIssuesTipView.swift
T
2025-08-16 20:47:20 +08:00

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)
}
}
}