Skip to content

Instantly share code, notes, and snippets.

//
// ContentView.swift
// AppleMusicLyricsPlayer
//
// Created by Magesh Sridhar on 2/5/23.
//
import SwiftUI
import AVKit
//
// FluidMusicButons.swift
// EnterSwiftUIAnimations
import SwiftUI
struct FluidMusicButons: View {
@State private var isPlaying = false
@State private var transparency: Double = 0.0
@Priva28
Priva28 / GradientEffect.swift
Last active July 29, 2025 05:01
Gradient effect to emulate Apple Music Lyrics/Now Playing screen.
//
// ContentView.swift
// GradientEffect
//
// Created by Christian Privitelli on 18/7/20.
//
import SwiftUI
struct ContentView: View {
@crusat
crusat / ContentView.swift
Last active July 20, 2023 06:18
Changable themes in SwiftUI
import SwiftUI
struct Theme: Hashable {
var colorPrimary: Color = Color.primary
var name: String? = nil
var publicName: String = "System"
}
var themes: [Theme] = [
Theme(colorPrimary: Color.primary, name: nil, publicName: "System"),