From 72a880ffe35d29897ae31af9163751d904218293 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 17 Dec 2021 04:28:53 -0800 Subject: [PATCH] adding replay button --- .../Views/HomeView/InnerCircle/InnerCircleView.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nirvana-ios/Views/HomeView/InnerCircle/InnerCircleView.swift b/nirvana-ios/Views/HomeView/InnerCircle/InnerCircleView.swift index c0d5a2d..1f9d49d 100644 --- a/nirvana-ios/Views/HomeView/InnerCircle/InnerCircleView.swift +++ b/nirvana-ios/Views/HomeView/InnerCircle/InnerCircleView.swift @@ -113,6 +113,8 @@ struct InnerCircleView: View { } } + // TODO: do cool animations with this footer background fill in while + // recording or playing a message var footerNavigation: some View { ZStack(alignment:.bottomTrailing) { VStack(alignment:.center) { @@ -140,6 +142,14 @@ struct InnerCircleView: View { } Spacer() + + Label("Replay", systemImage: "repeat.1.circle.fill") + .font(.title2) + .labelStyle(.iconOnly) + .foregroundColor(Color.orange) + + + Spacer(minLength: 65) } .frame(maxWidth: .infinity, maxHeight: 60) // 60 is the height of the footer control big circle .background(Color.white.opacity(0.5)) @@ -332,6 +342,7 @@ struct InnerCircleView: View { let wayOutRingXAcceptance = self.universalSize.width * 0.425 let wayOutRingYAcceptance = self.universalSize.height * 0.375 + if xdelta <= innerCircleXAcceptance && ydelta < innerCircleYAcceptance { return big } else if xdelta <= outerRingXAcceptance && ydelta < outerRingYAcceptance {