|
|
@@ -1,52 +1,5 @@
|
|
|
import SwiftUI
|
|
|
|
|
|
-struct SettingsShareAppButton: View {
|
|
|
- let message: String
|
|
|
- let url: URL
|
|
|
-
|
|
|
- var body: some View {
|
|
|
- ShareLink(item: url, message: Text(message)) {
|
|
|
- HStack(spacing: 14) {
|
|
|
- Image(systemName: "square.and.arrow.up")
|
|
|
- .font(.system(size: 16, weight: .semibold))
|
|
|
- .foregroundStyle(.white)
|
|
|
- .frame(width: 40, height: 40)
|
|
|
- .background(
|
|
|
- RoundedRectangle(cornerRadius: 10)
|
|
|
- .fill(AppTheme.accentPurple)
|
|
|
- )
|
|
|
-
|
|
|
- VStack(alignment: .leading, spacing: 2) {
|
|
|
- Text("Share App")
|
|
|
- .font(.system(size: 14, weight: .semibold))
|
|
|
- .foregroundStyle(AppTheme.textPrimary)
|
|
|
- Text("Tell friends about \(AppLinks.appName)")
|
|
|
- .font(.system(size: 11))
|
|
|
- .foregroundStyle(AppTheme.textSecondary)
|
|
|
- }
|
|
|
-
|
|
|
- Spacer()
|
|
|
-
|
|
|
- Image(systemName: "chevron.right")
|
|
|
- .font(.system(size: 11, weight: .semibold))
|
|
|
- .foregroundStyle(AppTheme.textTertiary)
|
|
|
- }
|
|
|
- .padding(14)
|
|
|
- .background(
|
|
|
- RoundedRectangle(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
- .fill(AppTheme.cardBackground)
|
|
|
- .overlay(
|
|
|
- RoundedRectangle(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
- .stroke(AppTheme.accentPurple.opacity(0.35), lineWidth: 1)
|
|
|
- )
|
|
|
- )
|
|
|
- }
|
|
|
- .buttonStyle(AppPlainButtonStyle())
|
|
|
- .hoverCard(cornerRadius: AppTheme.cornerRadiusSmall)
|
|
|
- .frame(maxWidth: .infinity, alignment: .leading)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
struct SettingsToggleRow: View {
|
|
|
let icon: String
|
|
|
let title: String
|