Skip to content

Commit b8238e4

Browse files
committed
Adjust connect button to be compat with glass
1 parent 52a24f5 commit b8238e4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

firebaseai/LiveAudioExample/Views/ConnectButton.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,8 @@ struct ConnectButton: View {
6161
.font(.title2.bold())
6262
.frame(maxWidth: .infinity)
6363
.padding()
64-
.background(color)
65-
.foregroundStyle(.white)
66-
.clipShape(RoundedRectangle(cornerRadius: 12))
6764
}.disabled(state == .connecting).overlay(
68-
RoundedRectangle(cornerRadius: 12)
65+
RoundedRectangle(cornerRadius: 35)
6966
.stroke(
7067
AngularGradient(
7168
gradient: Gradient(colors: gradientColors),
@@ -75,7 +72,7 @@ struct ConnectButton: View {
7572
),
7673
lineWidth: 3
7774
)
78-
)
75+
).tint(color)
7976
.onAppear {
8077
withAnimation(.linear(duration: 5).repeatForever(autoreverses: false)) {
8178
self.gradientAngle = .degrees(360)

0 commit comments

Comments
 (0)