From f9cd6b1632fbfc5752c9b8fef994a8e0bb141ccd Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 4 Jan 2022 10:23:52 -0800 Subject: [PATCH] fixing waves a little --- nirvana-ios/Views/Templates/WavesGlassBackgroundView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nirvana-ios/Views/Templates/WavesGlassBackgroundView.swift b/nirvana-ios/Views/Templates/WavesGlassBackgroundView.swift index fc5badf..af9aee7 100644 --- a/nirvana-ios/Views/Templates/WavesGlassBackgroundView.swift +++ b/nirvana-ios/Views/Templates/WavesGlassBackgroundView.swift @@ -29,7 +29,7 @@ struct WavesGlassBackgroundView: View { LinearGradient(gradient: Gradient( colors: [NirvanaColor.white.opacity(0), NirvanaColor.white.opacity(1.0)]), startPoint: .bottom, endPoint: .top) - getWave(peakPercentage: 0.4, troughPercentage: 0.65, peakAltercation: baseLineY + 100, troughAltercation: baseLineY - 90) + getWave(peakPercentage: 0.4, troughPercentage: 0.65, peakAltercation: baseLineY, troughAltercation: baseLineY - 50) .foregroundColor(NirvanaColor.dimTeal.opacity(0.5)) .blur(radius:2) .offset(x: self.animateWaves ? -1*universalSize.width : 0) @@ -38,7 +38,7 @@ struct WavesGlassBackgroundView: View { value: self.animateWaves ) - getWave(peakPercentage: 0.2, troughPercentage: 0.75, peakAltercation: baseLineY - 50, troughAltercation: baseLineY + 100) + getWave(peakPercentage: 0.2, troughPercentage: 0.75, peakAltercation: baseLineY - 50, troughAltercation: baseLineY + 50) .foregroundColor(Color.orange.opacity(0.3)) .blur(radius:2) .offset(x: self.animateWaves ? -1*universalSize.width : 0) @@ -47,7 +47,7 @@ struct WavesGlassBackgroundView: View { value: self.animateWaves ) - getWave(peakPercentage: 0.25, troughPercentage: 0.75, peakAltercation: baseLineY + 70, troughAltercation: baseLineY - 100) + getWave(peakPercentage: 0.45, troughPercentage: 0.75, peakAltercation: baseLineY + 50, troughAltercation: baseLineY - 60) .foregroundColor(NirvanaColor.teal.opacity(0.3)) .blur(radius:2) .offset(x: self.animateWaves ? -1*universalSize.width : 0)