Skip to content

Instantly share code, notes, and snippets.

View Shriram-Vasudevan's full-sized avatar

Shriram Vasudevan Shriram-Vasudevan

  • New Jersey
  • 17:16 (UTC -12:00)
View GitHub Profile
struct CurvedSheed: View {
@Binding var isOpen: Bool
@State private var sheetOffset: CGFloat = 1000
@State private var backgroundOpacity: Double = 0
var body: some View {
ZStack {
// Background overlay
Color.black
import SwiftUI
struct WaveformAnimation: View {
@State var waveformData: [CGFloat] = Array(repeating: 0, count: 40)
@State var startAnimation: Bool = false
@State var color: Color = Color(hex: "A28497")
var body: some View {
HStack(spacing: 4) {
ForEach(Array(waveformData.enumerated()), id: \.offset) { index, height in