From 594315d90b92038feaf9b9e826515c0858e74675 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 13 Dec 2025 02:19:34 +0000 Subject: [PATCH] ui(ios): glassy settings button --- apps/ios/Sources/RootCanvas.swift | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/ios/Sources/RootCanvas.swift b/apps/ios/Sources/RootCanvas.swift index 16a3c032a..b222734a5 100644 --- a/apps/ios/Sources/RootCanvas.swift +++ b/apps/ios/Sources/RootCanvas.swift @@ -14,8 +14,28 @@ struct RootCanvas: View { .font(.system(size: 16, weight: .semibold)) .foregroundStyle(.primary) .padding(10) - .background(.thinMaterial) - .clipShape(RoundedRectangle(cornerRadius: 12, style: .continuous)) + .background { + RoundedRectangle(cornerRadius: 12, style: .continuous) + .fill(.ultraThinMaterial) + .overlay { + RoundedRectangle(cornerRadius: 12, style: .continuous) + .fill( + LinearGradient( + colors: [ + .white.opacity(0.18), + .white.opacity(0.04), + .clear, + ], + startPoint: .topLeading, + endPoint: .bottomTrailing)) + .blendMode(.overlay) + } + .overlay { + RoundedRectangle(cornerRadius: 12, style: .continuous) + .strokeBorder(.white.opacity(0.18), lineWidth: 0.5) + } + .shadow(color: .black.opacity(0.35), radius: 12, y: 6) + } } .buttonStyle(.plain) .padding(.top, 10)