commit b3018f4b76f3b3a8c0b783a364e82be5d3ab7315
parent 7b1ac930577c85c384e1b0d4cb2e1556b3c8c46d
Author: Michael Camilleri <[email protected]>
Date: Sun, 28 Jun 2026 17:54:21 +0900
Make share button more button-like
Diffstat:
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/Crossmate/Views/Components/CustomButtons.swift b/Crossmate/Views/Components/CustomButtons.swift
@@ -26,6 +26,18 @@ extension View {
}
@ViewBuilder
+ func shareButtonGlass() -> some View {
+ let shape = RoundedRectangle(cornerRadius: 9, style: .continuous)
+ if #available(iOS 26.0, *) {
+ glassEffect(.regular.interactive(), in: shape)
+ } else {
+ overlay {
+ shape.strokeBorder(.quaternary, lineWidth: 0.5)
+ }
+ }
+ }
+
+ @ViewBuilder
func nudgeGlass(isLabeled: Bool = false) -> some View {
if #available(iOS 26.0, *) {
if isLabeled {
diff --git a/Crossmate/Views/Puzzle/SuccessPanel.swift b/Crossmate/Views/Puzzle/SuccessPanel.swift
@@ -289,9 +289,11 @@ struct SuccessPanel: View {
private var shareIcon: some View {
Image(systemName: "square.and.arrow.up")
- .font(.system(size: 18, weight: .medium))
- .foregroundStyle(.secondary)
- .frame(width: 32, height: 32)
+ .font(.system(size: 16, weight: .semibold))
+ .foregroundStyle(.primary)
+ .padding(.bottom, 4)
+ .frame(width: 34, height: 30)
+ .shareButtonGlass()
.accessibilityLabel("Share")
}